XF 1.5 Friendly URLS'not totally working


Active member
Been trying to get friendly URL's working correctly without much luck.

When I switch them on the home page goes blank but other pages work properly, as below

http://moviesgamestv.co.uk/ - Doesnt work
http://moviesgamestv.co.uk/members/ - Works
http://moviesgamestv.co.uk/search/ - Works

This is the htaccess file, this is the default one that ships with Xenforo apart from the top 3 lines
#Force non-www:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.moviesgamestv\.co.uk [NC]
RewriteRule ^(.*)$ http://moviesgamestv.co.uk/$1 [L,R=301]
#   Mod_security can interfere with uploading of content such as attachments. If you
#   cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#   SecFilterEngine Off
#   SecFilterScanPOST Off

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<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 /xenforo

   #   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 mod_expires.c>
   ExpiresActive On
   # Set Images to Expire After a Month
   ExpiresByType image/jpg "access plus 1 month"
   ExpiresByType image/jpeg "access plus 1 month"
   ExpiresByType image/gif "access plus 1 month"
   ExpiresByType image/png "access plus 1 month"
   ExpiresByType image/x-icon "access plus 1 month"
   # Set CSS/JS to Expire After a Month
   ExpiresByType text/css "access plus 1 month"
   ExpiresByType text/x-javascript "access plus 1 month"
   ExpiresByType application/javascript "access plus 1 month"

   # Set XML to Expire After a Week
   ExpiresByType text/xml "access plus 1 week"
   ExpiresDefault "access plus 2 days"

I know this should work on this server as I have another couple of sites that this works perfectly on. Friendly URL's are switched off at the moment until I can get this sorted.

Chris D

XenForo developer
Staff member
It seems as though Friendly URLs is generally working, otherwise the other routes would show a blank page too.

My guess is that there might be an empty index.html file in your XF root. If there is, delete it, and the problem should go away.