1. 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

Discussion in 'Troubleshooting and Problems' started by Ranger375, Nov 11, 2010.

  1. Ranger375

    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>
     
  2. Floris

    Floris Guest

    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.
     
    anotheralias likes this.
  3. Ranger375

    Ranger375 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 :\
     

Share This Page