Random 302 Redirect (Wordpress CMS)
-
So this new project that i am working on is a redesigned CMS site using Wordpress (php based). Before i started on the project they made a few major updates that include:
- Changed from ID based URLS to SEO friendly URLS
- Added multiple languages in directories
- Due to the new languages they wanted to have the previous home page, www.domain.com, redirect to the proper language based on their IP address. Currently they are using a 301 redirect through a php header. So if i was visiting the site from my hometown of Cleveland, Ohio and i type www.domain.com into the browser. I would automatically redirect to www.domain.com/en and i would have the option to switch languages if needed.
The issue:
When i first added their site into SEOMoz the crawl returned a large amount of 302 redirects coming from their old homepage www.domain.com. So i took a look at the header calls using IE's webmaster tools and Firebug in Firefox. In both profilers it showed the same problem.
- Before the 301 header redirect there was a 302 redirect called first
- When viewing the response header it mentioned an x-pingback of some file that didn't even exist on the site: www.domain.com/xmlrpc.php
This is obviously a huge issue because any link value from the old homepage will be lost due to the 302 not passing the value. I have tried search the almighty Google for help but it has gotten me no where. I have a hunch it is something to do with Wordpress but that is based on nothing but my gut. Any help is greatly appreciated.
I got to get that 302 gone or changed to a 301
Regards - Kyle
-
Interesting, not sure. Did you ever check out the theme?
-Brent
-
The funny thing is, i didn't find a solution nor did i mark this as anwsered...
It looks like someone on the SEOMoz staff thought it was done?
-
Hey Kyle,
I see you set the question as answered. What did it end up being?
-Brent
-
Brent - thank you for finding my post, i thought it was forever lost!
They had created a custom template, however i will still suggest them try the TAC plugin just incase. I will post the results once i get them.
Thanks again - Kyle
-
Hi Kyle,
Did they build the Wordpress template themselves? The pingback is a little suspicious, download the plugin called TAC and see if it brings up any hidden code. I had a similar problem where I was working on a site that was using a free theme and had a 302 in the header which made the site struggle in rankings. As soon as I figured out that it was in fact the free theme causing the issue I got it removed and traffic 10x'ed (not much as they were getting like 5 visitors a day) in roughly a week.
It's hard to help without seeing the site but let me know what TAC reports and if it's clean we'll dig deeper.
-Brent
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
-
Migrate from HTML to Wordpress?
My website is currently HTML because in the past, I liked a more hands-on approach and liked to have a high level of control over my code. My organic search rankings are very good. I do have a blog on wordpress now. Despite all of this, I am considering moving to Word Press. The reason is that the fancier website techniques are very easy to achieve with a wordpress theme or plug-in. And some changes, such as menu, can be done at the high level versus the entire site. Auto-responsive is built within the themes, so anytime a new device comes out, they update it so I don't have to. And, I would like to be more tightly integrated with my blog. I am also getting to the points that I have no time to code and would like something a little simpler to maintain. BUT, I am scared to make the move and then completely lose my organic rankings. I know that I will have to 301 all of the pages. And I know that I will have to maintain all my current on-page SEO by paying close attention to the headers and whatnot. Do you all think that it is worth making the switch? Is there a good chance my organic rankings will drop?
Web Design | | CalicoKitty20000 -
SEO with Webflow CMS (webflow.com)?
Some friends of mine are having their site redesigned. The designer is using Webflow, which appears to be a visual drag-and-drop designer. Has anyone come across Webflow before? How is it for SEO? I'm not typically pleased with visual designers for SEO, but maybe somebody's had experience and thinks it's fine.
Web Design | | justin-brock0 -
301 Redirect all pictures when moving to a new site?
We have 30,000 pictures on our site. Moz will return 404's on some occasionally, but Google seems to ignore those. Should I 301 redirect all those images when we move to a new site lay-out? Appreciate your views!
Web Design | | Discountvc0 -
Is it ok to redirect an old URL to new URL with anchor tag?
Ex. OLD URL - http://www.mysite.com/shoes/red/description NEW URL - http://www.mysite.com/shoes/red#desc Thanks in advance!
Web Design | | esiow20130 -
Redirection Problem
Wondering if anyone could offer some tips here please. I cannot share the site name so will try and be as detailed as possible. My client had their site on a .com domain and have decided to move to a co.uk domain. The new site has been put on the uk domain with more or less the same structure, save for pages which have been removed or merged. I am now setting up 301 redirects to tell the engines about the moved site, however this is giving me no end of grief. I can get domain.com to redirect to domain.co.uk no problems, however, if I try and redirect any of the inner pages to their new locations they all end up on the .co.uk home not where they should be. Given the homepage isn't designed to rank for all the terms. The htaccess I am using is below, I cannot see anything wrong with it, can anyone else? Redirect 301 / http://newdomain.co.uk/
Web Design | | carl_daedricdigital
Redirect 301 /villa_rental.php http://newdomain.co.uk/villa_rental.html
Redirect 301 /new_home.php http://newdomain.co.uk/new_home.html
Redirect 301 /http://newdomain.com/villas.php http://newdomain.co.uk/villastyles.html
Redirect 301 /developments.php http://newdomain.co.uk/developments.html
Redirect 301 /solana_hills.php http://newdomain.co.uk/solana_hills.html
Redirect 301 /middle_east.php http://newdomain.co.uk/middle_east.html
Redirect 301 /denia.php http://newdomain.co.uk/denia.html
Redirect 301 /faq.php http://newdomain.co.uk/faq.html I have tried both relative and full paths for the old site but doesn't make any difference. Does it matter the old site is php and the new html? many thanks0 -
Is it possible to redirect the main www. domain - but keep a subdomain active?
Hi Mozzers, Quick question, which I hope one of you can answer... Let's say I have a website (i) www.example.com and on that a subdomain exists, (ii) subdomain.example.com. Let's say I want to change my main domain from www.example.com to www.newwebsite.com. I'd 301 all content, use GWT to notify Google of a change of address etc etc. Having done that, is it still possible to keep the original subdomain active? So, even though www.example.com has been redirected / transferred to www.newwebsite.com, subdomain.example.com would still exist. If that is possible, what is the implication for Domain Authority? On the one hand, I have transferred the main site (so DA from that will transfer to the new site); but part of that root domain is still active. Make sense? Any answers? Thanks everyone...
Web Design | | edlondon0 -
WordPress blog hosted on GoDaddy domain mapping help
We set up a WP blog that's hosted through GoDaddy. For various reasons, we purchased a URL to use to get through the technical build and set up and are trying to map that to a subdomain of our company website. (We can't host it on our own server, unfortunately). My question is: for WP blogs hosted via WP you can buy a domain mapping upgrade and I'm trying to find a similar plugin that could offer the same thing that would apply to our GoDaddy hosting and point to our subdomain (GD apparently doesn't offer the domain mapping). Anyone have any thoughts, please?
Web Design | | josh-riley0 -
Best way to develop a WordPress version of your site and then move it?
I have two websites that generate hundreds of organic hits each day. I want to switch both of them to WordPress. What is the best way to go about developing these sites then making them live while still keeping the current ones up?
Web Design | | C-Style0