Forum Moderators: phranque
<a name="examples">(text). I then changed the HTML link from (old page) examples.html to similarpage.html#examples, which works as expected. Because the old page has been indexed for several years I want to send a RedirectMatch 301 to the S.E.s, so I tried adding this line to my .htaccess, but it results in a 404 file not found error:
RedirectMatch permanent examples\.html ht*p://www.mydomain.com/similarpage.html#examples. However, if I click on an html link to that bookmarked item, it is correctly loaded into the browser, with the bookmarked section at the top of the Window. I also noticed that the addressbar shows that my # has been converted to %23. Am I barking up the wrong tree trying to do this type of internal page-link ID redirect in .htaccess? If so, should I feed a 404 or 410 GONE to the S.E.s? Real people can still access the information by clicking on the html link in the Navbar, or in my site map.
Owner Edit:
I just remembered, in my sleepy state, that "#" is a Comment indicator in .htaccess. I changed the redirect linkage to %23, but it still fails to go to the linked page. Just shows a %23 in the URL, instead of the # sign.
Thanks anyway, Wiz
Jim