1

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?

6
  • You say that the URL "redirects." What type of redirect is it? 302 temporary? 301 permanent? – Stephen Ostermiller Apr 29 '15 at 19:59
  • I don't use wordpress myself, but its much better to give 301 status to the links that are meant to redirect to another link. You can even do this at an .htaccess level for faster processing purposes (skips going through PHP) – Mike -- No longer here Apr 29 '15 at 20:14
  • no 300 series, it means mention it links to my posts. – PersianGulf Apr 29 '15 at 20:19
  • "no 300 series"? How is it redirecting? Or is it not redirecting at all and you have two URLs showing the same post? – MrWhite Apr 29 '15 at 20:31
  • It's language issue(English)... sorry for my English language – PersianGulf Apr 29 '15 at 20:59
2

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.