Replacing ‘#’ in incoming links
-
The problem
Looking through my Google Sitemaps, I noticed a bunch of 404 files pointing at links that contained
‘/article.html%23comment-155’
instead of
‘/article.html#comment-155’The Solution
RewriteRule ^(.*).html([^c]+)comment-(.+)$ https://www.site.com/$1.html#comment-$3 [R=301,L,NE]
Just thought I’d share for the googlers.
- The topic ‘Replacing ‘#’ in incoming links’ is closed to new replies.