I have something like the following in .htaccess
:
RewriteRule ^a/(.+)$ index.php?data=$1 [L]
Simple enough, and works for most cases, except when I use the following URL:
http://example.com/a/hello%23abc
I expect this to set the data
GET variable to hello#abc
, but instead it breaks. I assume that it breaks because Apache "unescapes" the characters, making the url the following:
index.php?data=hello#abc
Which is probably why it's setting the data
GET variable to hello
.
Is there any way I can fix this?
Thanks.