• 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

Ranger375

Well-known member
#1
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>
 
F

Floris

Guest
#2
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.
 

Ranger375

Well-known member
#3
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 :\