Forum Moderators: phranque
RewriteBase /
RewriteRule ^abc$ /page.php [L]
RewriteRule ^xyz$ /page.php#xyz [L]
Unfortunately it seems to completely ignore the "#xyz" as part of the rewrite - it just takes me to page.php
Is this because # is a comment character? If so, how to get around this obvious problem? If not, what am I doing wrong?
I would have searched the forum but couldn't figure out how to....
Thanks in advance for any and all help! :)
For example, if you link to page.php#foo, and someone clicks that link, their browser will request page.php from your server, and after loading that page, the browser will then 'jump' to the '#foo' anchor.
The usual solution to this problem is to break the page into multiple pages, so that you can more-selectively link to the content.
Jim