: How remove a duplicate permanent link in WordPress? I have two links that show a single post. I need to remove one of them, because I get "Duplicate title tag" warnings in Google Webmaster
I have two links that show a single post. I need to remove one of them, because I get "Duplicate title tag" warnings in Google Webmaster Tools.
How can I remove a permanent URL from WordPress?
More posts by @Barnes591
1 Comments
Sorted by latest first Latest Oldest Best
It seems you have two pages/URLs that show the same post. Ordinarily I would have suggested removing one of these "permalinks" in WordPress - that URL would then return a 404. However, it would seem that these two permalinks have existed for a while(?) and have been indexed and possibly linked to.
So, it might be better (at least in the short term) to 301 redirect one URL to the other in .htaccess (in your document root) using mod_rewrite.
Something like:
RewriteRule ^path/to/permalink-1 /path/to/permalink-2 [R=301,L]
This should come immediately after the existing RewriteEngine On directive and before WordPress's own rewrites.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.