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
-
Does a similar CMS fabric/theme used by 2 colleagues, cause SEO issues?
Does using the same CMS fabric/theme with substantially different content for each website but the same business address (on google places and the websites) cause SEO issues? For example: 2 colleagues with somewhat similar services located at the same business addresses desire to use the same CMS fabric /theme but will have different content on the sites. Will this hurt their SEO / should they use a different website skin/theme?
Web Design | | toti5880 -
How do I find why I have a 302 redirect?
I have a 10 year old website and I have just recently changed to a https: version and my host ionos setup a 301 redirect. I have noticed on my Moz reports that as well as a 301 redirect there is also a 302. How do I find why I have a 302 redirect? I have looked in my htaccess file and it says:- RewriteCond %{SERVER_PORT} 80
Web Design | | Ast9858
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R,L] I'm assuming this is the 301 redirect, where will I find the 302 redirect. Please note that I am using Wordpress that was not setup through ionos. Does anyone know where a 302 redirect could also be installed or how I find why its there or where its coming from? Thanks Andrew0 -
301 Redirect Issue for URL with # and !
Hi All, We had a WIX website and now moved to Wordpress. I m having issue while doing redirecting from old URL to new URL. Example: Old Url: http://www.firsttraffic.com.au/#!traffic-management/ccfn New Url: http://www.firsttraffic.com.au/our-services/traffic-management/ I tried different wordpress plugin but nothing works. I m thinking its due to the # . But How can I to redirection for URL like this . Thanks
Web Design | | emarketexperts0 -
How to setup a redirect from one subfolder to another to avoid duplicate content.
Hello All, I have a WordPress site that Moz says has duplicate content. http://deltaforcepi.com/latest-news/page/3
Web Design | | Michael_Rock
http://deltaforcepi.com/category/latest-news/page/3 So I set up an addition to the .htaccess file . . . redirect code to move from one folder to another RewriteRule ^category/latest-news/(.*)$ /latest-news/$1 [R=301,NC,L] What did I do wrong? I am not proficient in .htaccess files.0 -
Wordpress Custom Permalinks Plugin Issue
Hello, I installed this plugin and I'm having trouble making it work. I'm new to WordPress so was hoping someone can help me out. I'm looking to set up the following pages for example
Web Design | | ec1976
http://testsite.azurewebsites.net/Services/Services1
http://testsite.azurewebsites.net/Services/Services2 I do the following steps Add New Page Enter the following title "Services1" Enter the following text in the Permalink textbox "Services/Services1" replacing the default text "?page_id=140" Then I publish the page. This automatically updates the "Custom Fields" section below. The name is set to "custom_permalink" and the value is set to "Services/Services1". Then I "view page" but get a 404 error. The url is "http://testsite.azurewebsites.net/Services/Services1" Some additional info 1. WordPress version 9.8.3 Settings - Permalinks is set to "post name" Custom Permalinks version 0.7.18 Any help would be greatly appreciated. Thanks0 -
HTML verses CMS
Hi My site is ranking quiet well for the past 10 years although it is becoming a bit dated. I am thinking of revamping it using Modx. Will this affect the ranking . Does a HTML site rank higher then CMS or does it no longer matter. I believe one of the reasons my site ranks so well is because it is a very basic HTML design. Should I just put a new HTML template on it Thanks
Web Design | | Niteowl0 -
How do I learn how to build custom wordpress websites?
Is wordpress a good platform to build websites with? If so, what are some good resources to learn how to build custom websites using wordpress?
Web Design | | Lael0 -
Type of redirect?
I'm almost ready to launch a website redesign. We are going to move what's currently being hosted on olddomain.com to newdomain.com. We want to do this early to avoid error and to have olddomain.com redirect to newdomain.com until the new content is ready. Once the redesign is complete, we'll push the new content to olddomain.com (as it holds a higher SEO value) and take away the redirect. A. Does this sound like a good idea? B. What kind of redirect should I use? 302? 307? Thanks, and sorry for the confusion 🙂
Web Design | | kylesuss0