Page anchor sign in RewriteRule (#)

Using mod_rewrite to handle various content issues

Page anchor sign in RewriteRule (#)

Postby paha » Tue Nov 28, 2006 2:39 am

Is it possible to use Page anchor sign in RewriteRule (#)?

Redirect directive works if I put the # character in the reciept:
Redirect /download/addons/index.html

However if the same receipt put into the RewriteRule, like:
RewriteRule /download/addons/index.html$[R,L]

does not work...

Any ideas on this issue?
Posts: 2
Joined: Tue Nov 28, 2006 1:11 am

Postby richardk » Tue Nov 28, 2006 9:06 am

Try \# instead of #.

Edit: The NE flag fixes it:
Code: Select all
RewriteRule abc /def#ghi [NE,R,L]
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Return to Content

Who is online

Users browsing this forum: No registered users and 1 guest