Forum Moderators: phranque
I want to rewrite url like
http://www.example.com/word/word-day/48-2.html#reviews-31
I used this rule,
RewriteRule ^word/([^/]+)/([^/]+)-([^/]+)\.html#([^/]+)$ reviews.php?bid=$2&page=$3\#$4 [L]
but it is not working. the htaccess misses to read the url pattern and skip to the next rule.
thank you in advance for the great help
Therefore, the only way you can be sure that your mod_rewrite rule will receive a #something anchor string in the URL is if that URL-string is the result of a previous rewrite on your server.
Best practice is to avoid any server-side dependency on named anchors.
Jim