• 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

BassMan

Well-known member
#1
Hi,

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:

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

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