Hi, I'm having problems with jQuery and mod_rewrite. I read someone here before that had problems with it but I couldn't figure out what was wrong with my code.
What I do is this, RewriteBase / RewriteRule ^([^.]+)$ /index.php [L] In index.php I then split all "/" to sepperate variables. For example, /member/edit will tell index.php to include the page member.php, that I do with include "member.php", and that variable $_URI['type'] is edit. So now we have $_URI['page'] = member.php, $_URI['type'] = edit In member.php I check what type of function the page should load, here we want to do edit. So I hve this in my code, if($_URI['type'] == "edit") { // Do this } But my jQuery code does not work with this. What can I do to make my jQuery code to work? If I change everything and load the page with just member.php? type=edit my code works perfectly, it's my mod_rewrite code that seems to be screwing things up.