PDA

View Full Version : Mod_Rewrite Help Please


Oliv3r
08-05-2004, 07:42 AM
Hey guys, Im trying to figure out how to do something using mod rewrite. I just need to edit my .htaccess file and i dont exactly know how although I know it can be done. Here is the problem. A website is forwarding hits to my site using the following URL for example:
http://www.24hrgamers.com/codes.php%3Fop=showgame%26system=PC%26gamename=gta 3.shtml%26game_title=Grand%20Theft%20Auto%203 (http://www.24hrgamers.com/codes.php%3Fop=showgame%26system=PC%26gamename=gta 3.shtml%26game_title=Grand%20Theft%20Auto%203)

I need the %3F to be changed to a ?
I also need the %26 to be changed to a &

I need this to be done on every URL even if its a different game etc. So anyone have ideas? (The reason im doing this is the script im using isn't recognizing the %3F as a ? and the %26 as a &.