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
-
Redirection chain and Javascript Redirect
Hi, A redirection chain is usually defined as a page redirecting to another page which itself is another redirection. URL1 ---(301/302)---> URL2 ---(301/302)---> URL3 But what about Javascript redirect? They seem to be a different beast: URL1 ---(301/302)---> URL2 ---(200 then Javascript redirect)---> URL3 From what I know if the javascript redirect is instant Google counts it as a 301 permanent redirection, but I'm still not sure about if this counts as a redirection chain. Most of the tools (such as moz) only see the first redirection. So is that scenario a redirection chain or no?
Technical SEO | | LouisPortier0 -
Getting high priority issue for our xxx.com and xxx.com/home as duplicate pages and duplicate page titles can't seem to find anything that needs to be corrected, what might I be missing?
I am getting high priority issue for our xxx.com and xxx.com/home as reporting both duplicate pages and duplicate page titles on crawl results, I can't seem to find anything that needs to be corrected, what am I be missing? Has anyone else had a similar issue, how was it corrected?
Technical SEO | | tgwebmaster0 -
Pages not being indexed
Hi Moz community! We have a client for whom some of their pages are not ranking at all, although they do seem to be indexed by Google. They are in the real estate sector and this is an example of one: http://www.myhome.ie/residential/brochure/102-iveagh-gardens-crumlin-dublin-12/2289087 In the example above if you search for "102 iveagh gardens crumlin" on Google then they do not rank for that exact URL above - it's a similar one. And this page has been live for quite some time. Anyone got any thoughts on what might be at play here? Kind regards. Gavin
Technical SEO | | IrishTimes0 -
Redirects
I have a question about 404ed domains and old domains. #1 A domain has many links to it, but has been 404ed for 4 months. Should I redirect to a page I own and is almost exactly the same content. Will the fact that it was once 404ed be an issue? #2 I have an old domain that has many links but has been stagnant for a long time. Are these links still valuable and I should I redirect them to an important page on a different site? Does penguin influence your advice?
Technical SEO | | tylerfraser0 -
Redirecting Root domain to subdirectory by IP addresses (country specific)
We are using Wordpress Multisite. so www.mysite.com is our English website and www.mysite.com/sub is our Chinese website Can I redirect Chinese visitors who type "www.mysite.com" to "www.mysite.com/sub" ? so we want to force redirection to www.mysite.com/sub if our website is visited by Chinese IP Address. I've realized that this is called GeoIP Redirection. and our hosting company already has those database, I guess my job is just to simply insert some code in .htacess My question is, would it affect our SEO later on? and what .htacess code is the best practice here?
Technical SEO | | joony20080 -
Global ecommerce domain redirecting to country specific TLD
We have a large ecommerce website xyz.com that redirects to xyz.ch. Recently the group expanded to India and they have launched a website called xyz.in. Depending upon the ip address, xyz.com redirects to xyz.in (for Indian audience) and redirects to xyz.ch elsewhere. Now xyz.in wants to rebrand themselves as xyz.com. To achieve this, we are planning a full-fledged, step-by-step, planned domain migration from xyz.in to xyz.com. We have two scenarios now. 1. xyz.com will continue to redirect to xyz.ch only in czech republic (depending upon ip) 2. xyz.com will cease to redirect to anywhere else. Can you advise us on the implications on both the scenarios? What's your best suggestion for us? It's slightly urgent. The management wants to take a quick action. But we want to be very sure about the implications from SEO point of view.
Technical SEO | | Gaadi0 -
Redirects 301
Hello, I need to reedirect a URL of a page that I have in my site (http://digitaldiscovery.com.pt/servicos-de-marketing-digital/publicidade-online/) to a new URL with SEO porpuses. Whats the best way to this? I use Wordpress btw. Tks in advance! PP
Technical SEO | | PedroM0 -
301 redirect
We have just had an outside SEO agency report on our site: One of things brought up were arounf broken links, and how they class them as broken links. Could any body tell me whether this statement holds true please, as I am not aware of this "Our latest intelligence shows that google are downgrading ranking from sites that feature 301 redirects within the internal link structure". Any help would be greatly appreciated Regards
Technical SEO | | Yozzer0