bswinnerton
asked on
Anchor instead of comment in htaccess
Is there a way in an htaccess file to interpret the # literally, and not as a comment?
For example I'm using mod_rewrite and I'd like to take all incoming links to a particular folder, and redirect them to a certain page with an anchor at the end.
Something like this:
RewriteRule ^blogposts/([^/\.]+)/?$ blogposts/index.php?title= $1#$1
For example I'm using mod_rewrite and I'd like to take all incoming links to a particular folder, and redirect them to a certain page with an anchor at the end.
Something like this:
RewriteRule ^blogposts/([^/\.]+)/?$ blogposts/index.php?title=
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
P.S. this only happens if I type %23 in the browser, if I use the actual pound sign, it works fine
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
For example, if I echo $_GET['title'] I get the entire title and then #title right after it. Is there a way to signify the end of passing a variable? Or is there another solution?