• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Redirect non-existing URLs to home page


Well-known member

I would like to redirect non-existing URLs to my homepage. I've tried with this in my .htaccess, but it does not redirect as expected:

<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ / [L,QSA]
My forum is located in a subfolder.

Need some help here, please Thank you.
Last edited: