There doesn't seem to be much info on this topic so I'm going to outline my specific problem then maybe we can shape the question and the answer into something a bit more universal.
I have this rewrite rule
RewriteEngine On
RewriteBase /bookkeepers/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/?$ index.php?franchise=$1
Which is changes this URL
http://example.com/location/kings-lynn
Into this one
http://example.com/location/index.php?franchise=kings-lynn
The problem I am having is that if I add a trailing slash
http://example.com/location/kings-lynn/
then the query string is returned as
franchise=kings-lynn/
and for some reason none of my CSS and Javascript files are being loaded.
Any ideas?