How to Redirect all inactive Feed to a specific Wordpress page
-
Hi Guys,
I've been doing much cleaning on my blog lately and deleted numerous categories including their posts with low quality content.
After deleting the categories, Google Webmaster Tools is reporting some 404 errors about the RSS Feeds for the deleted categories.
I've created a 404.php file inside my theme and placed the following code
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.mysite.com/My404Page/", true, 301);
exit();
?>this have catched all 404 errors and redirected them to the specific page. Unfortunately, it could not catch the inactive feed urls. Is there a way to do this so that all inactive feeds will be redirected to my 404 page?
Thanks in advance....
-
Can't you give the urls of your live site?
It should be as simple as:
RedirectMatch 301 /lifestyle/feed http://www.newsite.com/location-of-new-feed
Wasn't your feed (also) available on the url that is displayed in Google webmaster tools?
-
Hi Yannick,
Yes I have access to .htaccess
Here are some sample format of the category feeds:
http://www.mysite.com/category/lifestyle/feed
http://www.mysite.com/category/off-beat/feed
but Google webmaster tools report the broken feeds as
http://www.mysite.com/lifestyle/feed
http://www.mysite.com/off-beat/feed
not sure why it removed the "category" in the url.
Thanks in advance...
-
Do you have access to a .htacces / can you create one? And do you know the feed url's? (Can you give me their format?)
A 301 redirect on a 404 page is not the way to do it If you answer my Q's I'll help you with the rest
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Should the canonical tag for the redirected pages be changed
Hi! Does anyone know if the canonical tag of the old redirected page should be changed, and include the URL of the new destination? Thanks in advance.
Technical SEO | | AnahitG0 -
Pages with Duplicate Page Content Crawl Diagnostics
I have Pages with Duplicate Page Content in my Crawl Diagnostics Tell Me How Can I solve it Or Suggest Me Some Helpful Tools. Thanks
Technical SEO | | nomyhot0 -
Creating a Target URL For 301 Redirect in Wordpress
I am confused as to what to put in as the target URL. Is this just a new URL that I must create a name for? I am having trouble finding any answer for this on the internet, just more people asking the same question. I am finally realizing that all the information is found right here at SEOmoz to both learn and ask questions about.
Technical SEO | | lartinos0 -
Redirecting 404
Hi. I'm working on a wordpress site, which got some old deleted pages indexed and now shows a 404 (also in the results) As these old pages earlier got content and probably also some links pointing towards it, what would then be best practice to do? Should i make an 301 redirect? Make the 404 noindex?
Technical SEO | | Mickelp0 -
Has Google stopped rendering author snippets on SERP pages if the author's G+ page is not actively updated?
Working with a site that has multiple authors and author microformat enabled. The image is rendering for some authors on SERP page and not for others. Difference seems to be having an updated G+ page and not having a constantly updating G+ page. any thoughts?
Technical SEO | | irvingw0 -
On-Page Question
Im trying to increase value to specific pages by putting history, and additional images. Will copying snippets from other sites negatively affect me? Should the content be re-written completely?
Technical SEO | | Anest0 -
Seomoz is showing duplicate page content for my wordpress blog
Hi Everyone, My seomoz crawl diagnostics is indicating that I have duplicate content issues in the wordpress blog section of my site located at: http://www.cleversplash.com/blog/ What is the best strategy to deal with this? Is there a plugin that can resolve this? I really appreciate your help guys. Martin
Technical SEO | | RogersSEO0