Support » Fixing WordPress » How to 404 Redirect Deleted Tag Pages?

  • I recently deleted about 150 tags on my health website, because google does not want us covering “sexual health” topics. In Google Webmaster tools I now have a warning that all of the deleted tag pages are not returning 404 messages, so I checked it out and lo and behold the deleted tag pages are not returning 404 messages. How can I set these deleted tag pages (like websitename.com/tag/gonorrhea/ ) to return 404 error messages?

    Thank you so much for your help!

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thanks for the link, I have read over it, but I am still not sure how to make the code call the 404.php file and “throw” the 404 error. That link mainly speaks about how to create a 404 error page (which I already have – 404.php), but it does not say how to “call” it. In fact, it specifically says not to “hard code the path” to the 404 file. If I take out the code I pasted above that currently displays “No Archive Found”, the 404.php is not getting called by default. So any thoughts on what to do to get the 404.php to get called in this scenario?

    Any more advice or suggestions? I’ve been working on this all day to no avail. I really need to figure out how to get my theme to return proper 404 errors instead of just displaying the “No Archive Found” message…

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘How to 404 Redirect Deleted Tag Pages?’ is closed to new replies.