Jump to content

Issues with Mod_Rewrite


jhecht

Recommended Posts

Hey everybody, been a long time. I come bearing a question. I'm working on a website for a couple of buddies, and I'm trying to add some ambiguity in the AJAX calls by using Mod_Rewrite.

RewriteEngine on
RewriteRule ^([A-Z][A-Za-z]+)\\?(.*)?$ /modules.php?mod=$1&$2
At first I thought there was an error in my Regular Expression, so I decided to test it out in Javascript. Say I am trying to request
/Data?user_id=1
The Javascript version returns exactly what it should, [Data,user_id=1], but the page redirects to /modules.php?mod=Data. There isn't even the ampersand, anyone have any ideas about why this isn't working? By the way, it works just fine for
/Data
Redirecting to
/modules.php?mod=Data
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...