I'm using mod_rewrite to manipulate requests that look like this: www.mydomain.com/myfile.html#someanchor
I would like the anchor name ("someanchor") to appear as a $_GET parameter, so rewrite the filename to myfile.html?anchor=someanchor
However the mod_rewrite regex pattern seems to fail with the #. I've tried my regex expressions on other regex engines (e.g. php) and it finds the pattern, but in mod_rewrite, the # seems to terminate the pattern search. For example, if I request the file myfile.htmlmyanch#or to this:
RewriteRule ^(.*).html([a-z#]*) test.html\?position=$2
the variable in $2 is "myanch" (even if I escape the # in the regex pattern, which I don't believe is necessary, but tried anyway)
Can anyone shed any light on this, please? thanks in advance
Les