Hi,
I've been attempting to refactor a fairly simple three or four page site to use a very lightweight MVC setup (probably overkill - but I thought I'd try it out for fun).
The site uses an .htaccess
file:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
#allow various filetypes
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php [NC,L]
This allows me to grab the URL and run it through a router. However, when trying to issue an Ajax request (via jQuery) - there is a query string being appended to the URL (dumped from PHP):
['key'] =>'2?_=1282088000558'
//should be:
['key]=>'2'
checking the $_SERVER array, I see that the value is recorded as REDIRECT_QUERY_STRING
This doesn't seem to be a problem with Javascript disabled, can anyone offer any insight on this problem? Is there a way of preventing jQuery from inserting this value, or should I just remove it in JS?