Mobile app version of vmapp.org
Login or Join
Barnes591

: 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

@Barnes591

Posted in: #Links #Permalinks #Url #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 Tools.

How can I remove a permanent URL from WordPress?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

1 Comments

Sorted by latest first Latest Oldest Best

 

@Ann8826881

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme