I’ve got a .htaccess file that’s attempting to force trailing slashes.
I’ve previously asked this question on Server Fault because I had assumed that it was purely a server question, but I now have a sneaking suspicion that my problem is related to jQuery Mobile.
Please reference this Server Fault question for the .htaccess configuration.
From that question, the result of visiting http://domain.tld/mobile/hoursis:
http://domain.tld/var/www/html/mobile/hours/
where it should be:
http://domain.tld/mobile/hours/
The entire site is written in jQuery Mobile, and although my expertise is limited, I think this bug/drawback might have something to do with the problem.
This is definitely a mod_rewrite issue, not jquery mobile as the var/www/html is a part of the file path for the server which jquery has nothing to do with.
Have you tried setting a rewrite base? Add the following after turning the rewrite engine on