Redirecting Anchors

Ask your mod_rewrite and Redirection questions here, and get answers!

Redirecting Anchors

Postby produke » 30 Oct 2006 20:40

Description:

By default, redirecting to an HTML anchor doesn't work, because mod_rewrite escapes the # character, turning it into %23. This, in turn, breaks the redirection.

Solution:

Use the [NE] flag on the RewriteRule. NE stands for No Escape.
User avatar
produke
 
Posts: 242
Joined: 25 Sep 2006 04:48

Return to Redirect or Rewrite Questions



Who is online

Users browsing this forum: ShakhtarrDon

cron