XF 1.3 Friendly URL's and .htaccess

First of all, let me start by saying I know diddly squat about .htaccess. I probably know as much as you know of Penguin Anatomy...

Recently I wanted to convert the site to use the Friendly URL's option in the configuration area. My VPS already had Mod_Rewrite implemented, so I added the following to my .htaccess:

<IfModule mod_rewrite.c>
## Enable mod_rewrite if available
Options +FollowSymLinks -Multiviews
RewriteEngine On
RewriteBase /

## Rewrite queries with keywords to be without '?'
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?QUERY_STRING=$1 [L]

## Tell script that mod_rewrite is enabled
RewriteRule ^(.*)$ $1?MOD_REWRITE=1 [QSA]
RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]

I really do not understand what anything above does to be honest, I had to mash something up that somewhat worked without any errors. For the most part it works, except when you try to go to Edit someone's post, where I get an error that says:

"The server responded with an error. The error message is in the Javascript console."

Can someone please help me sort this out?


Liam W

Well-known member
Can't you just use the default htaccess.txt file that comes with XenForo? Does that cause issues?

You should look in the JavaScript console to view the error.