SEO Friendly Links Not Working When In Subdir

JBS

Active member
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>

<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]
</IfModule>

I have also tried it without the RewriteBase /community

Any ideas?
 
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?
 

Attachments

  • htaccess.webp
    htaccess.webp
    18.9 KB · Views: 2
Top Bottom