I've been working my way through setting up rewrite rules so I can have shorter and nicer URLs, and I have a very ajaxy site.
I've got rewrite rules working on the server, and the pages load with the nice new urls, but it appears all the ajax is now broken. Firefox tells me its a 500 error.
Trying to load the page directly, I don't get a '500 Error' page, but it does return '3738', though I have no idea what this means.
So I checked the apache logs, and sure enough
GET /processes/format.php?output=queries HTTP/1.1" 500 33
the problem is, i have no idea why this is broken. The page exists, so I'm guessing it is an issue with rewriting urls?
My rewrite rule looks like this
RewriteEngine On RewriteCond %{REQUEST_URI} !\.(php|html|css|js|gif|png|jpe?g)$ RewriteRule (.*)$ /index.php [L]
-----------------edited 1------------------ So I've got the error log, and it looks like the error is in the rewriterule not recognizing
init rewrite engine with requested uri /processes/format.php applying pattern '(.*)$' to uri '/processes/format.php' RewriteCond: input='/processes/format.php' pattern='!.(php|html|css|js|gif|png|jpe?g)$' => not-matched pass through /processes/format.php
So I'm thinking this is an error with the rewrite rule, as the !.php should have been matched, unless I'm reading the log wrong.
----------------edit 2 ------------------ Looks like this may be a 2 part error. Part 1 javascript is loading a 500 error Part 2 the page isn't outputting the content. I've thrown a few echo's into the page, and the URL is retrievable. Not sure where that 3738 is coming from.