Jump to content

%26 & modrewrite breaking


jaymc

Recommended Posts

http://www.site.com/?name=fred%26cheese

echos fred&cheese

 

RewriteRule  ^name/(.+)?$ ?name=$1 [L]

echos fred

 

The problem is the rewrite rule seems to be encoding %26 back to & therefor ends up as http://www.site.com/?name=fred&cheese which breaks the name param in half

 

Any ideas how to get around this? I cant use a diff character or filter it out, I need a solution that allows me to stop modrewrite from doing this

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/133156-26-modrewrite-breaking/
Share on other sites

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.