XF 2.0 Redirect main forum index to domain.com, not domain.com/index.php

djbaxter

in memoriam 1947-2022
This is an SEO issue.

Currently running XF 2.0.10 - this was an import from vBulletin 4.2.5

The main forum index always loads at index.php, perhaps from this in .htaccess?

Code:
<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    RewriteBase /

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>

I don't want to mess up the XF redirects from the old vBulletin URLs by changing anything critical here but is it possible to use just domain.com as the main URL? It looks like everything else uses index.php?... as the URL.
 
Back
Top Bottom