mod_rewrite with anchor link

RewriteRule ^/video/(.*) /video.php?title=$1#player [NE,L,R=301]

NE|noescape

By default, special characters, such as & and ?, for example, will be converted to their hexcode equivalent. Using the [NE] flag prevents that from happening.

Source : http://httpd.apache.org/docs/current/en/rewrite/flags.html

Leave a Comment