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

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


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.

<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]


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.


Well-known member
Thanks, worked perfectly.

Yeah, replacing my vb with my xf, but don't want to change the directory name to avoid all the confusion that goes with it :\