SEO Friendly Links Not Working When In Subdir


I just moved my xenForo from the root to a subdir. Now I cannot get the SEO friendly urls to work. Here is my .htaccess.

# 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

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

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]
I have also tried it without the RewriteBase /community

Any ideas?


XenForo moderator
Staff member
How are the links appearing?
Are there any errors being displayed?

Don't forget to update the board URL in the ACP.


XenForo moderator
Staff member
Your .htaccess file appears to be missing as I can see a directory listing.

Your server isn't configured correctly either as it's ignoring index files.
Try adding this to your root .htaccess:

DirectoryIndex index.html index.php


It's there. Here is a screenshot from my ftp program. If it is not showing in the directory, does that mean xenForo cannot see it? Do I have something set wrong on my server?