Removing "index.php" from my web url - htacess help

Ranger375

Well-known member
How would I edit this htaccess file to remove the "index.php" from my forum address. My current address looks like this http://mysite.com/vb/index.php. Using mysite.com/vb works, but the index.php is still displayed.

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data|js|styles|install) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
Your directory is /vb/ but I assume you are running XenForo inside /vb/ ?

Leave the .htaccess in the dir you run xenforo from, and from the options > seo > use smexy urls : yes.

And you're done.
 
Top Bottom