Help! added WWW to wordpress site and now lost SEO ranking
-
Hi there Everyone!
I have recently added a www to my wordpress website by going to settings>general and adding "www" to the wordpress address and the site address. After i did that i lost my SEO ranking, and also that MOZ is detecting that im getting site crawl issues stating that i have duplicate pages. an example is below:
any ideas on how to fix this?
-
WordPress should take care of it, I don't know why it didn't happen. Between that and you seeing the non-www canonical, maybe there's a full-page cache in action, that hadn't been invalidated yet.
-
Do you want the www or not?
If you remove it now, you run the risk of people who visit the site frequently being stuck in a redirect loop and not being able to visit your site. When a browser receives a 301 redirect it caches it, very stubbornly. If you now change the 301 to point back to the original location your frequent visitors browsers will have cached the 301 that points from non-www to www, and if www returns a 301 that points to non-www, they'll just be stuck in a loop. If you want to go back I would try to make turn the current 301 from non-www to www into a 302, then change back in several days or weeks. That might not be very great for your SEO, though.
If you want to stick with the www, then stick with it. I'm not sure what I was seeing earlier, but when I check your homepage now with curl the non-www redirects me to www, as expected:
Johns-MBP:~ John$ curl -I http://mefco.co.nz
HTTP/1.1 301 Moved Permanently
Date: Sat, 19 Mar 2016 20:38:22 GMT
Server: Apache/2.2.31 (Unix) mod_ssl/2.2.31 OpenSSL/1.0.1e-fips mod_bwlimited/1.4
X-Powered-By: PHP/5.6.16
X-Pingback: http://www.mefco.co.nz/xmlrpc.php
Location: http://www.mefco.co.nz/
Cache-Control: max-age=604800
Expires: Sat, 26 Mar 2016 20:38:22 GMT
Vary: User-Agent,Accept-Encoding
Content-Type: text/html; charset=UTF-8Johns-MBP:~ John$
Where did you get the canonical info you posted above, is it from Moz? If so, it's probably outdated information. Remember what Matt wrote above about Moz & Google taking time to re-crawl your site. The way to check what your canonical tag, if any, says right now is to view the page source, ( in Chrome: View > Developer > View Source), and look for it, (Ctrl/Cmd + F to Find in the source, then type "canonical"). In your case, your canonical is now set to the www- URL - I'm not sure if you changed it since Matt looked, or if a cache expired, but it appears correct now.
You could go through any HTTP 301 and canonical settings in the Yoast SEO plugin, (which I see you're using), but I don't think you're at that point yet. Go through and make sure everything's set to www, if that's what you want to use. Really, I think you're almost there, and probably at a point where you should wait a few days to see what happens. I made a huge change on our site last weekend, (changed 99% of our URL structure), and after a bit of bug-fixing during the week we're only seeing the start of the result in Google & Moz now.
-
Furthermore, would me removing the "www" from the general settings fix my issues?
-
Thanks Matt and John, I have run the instructions you have linked me, and i am recieing the 301 redirect on the news page, the homepage is also showing that im getting a 301 redirect (this is with cleared cache, and incognito). In saying this after checking the canonical tag it seems that http://mefco.co.nz refers back to itself (see attached)
Im just trying to figure out how to fix this on wordpress. Yes the non-/news section are on the same wp install.
Silly question, is there a way to wipe all the tags and redirects and just start over?
-
Good find on the homepage - I saw it was Wordpress and assumed that would take care of the problem but you're right, something is wrong.
Also, the canonical tag is set to non-www and needs to be fixed.
-
In addition to what Matt said, make sure you're using a 301 redirect to redirect from the non-www version of your site to the www version. I'm pretty sure WordPress does this on its own, but you can check:
- Open a new tab in your browser
- Open the Developer Tools, (in Chrome it's Cmd/Ctrl + Alt/Option + i, or View > Developer > Developer Tools).
- Click the "Network" tab of the developer tools.
- Turn on recording by clicking the grey circle at the left of the bar that says things like "Preserve log" and "Disable Cache"
- Check the "Preserve Log" checkbox
- Type http://mefco.co.nz/news (without the www, but with the HTTP - this will ensure the initial request goes to the non-www URL), into the browser and press enter.
- A bunch of stuff will fly by - scroll back to the top, you're looking for the first request, in Chrome it'll just say "news" because that's the final part of your URL, but if you mouse over it you'll see the whole URL.
- Check the response code on that request, if it's 301 you're fine, if it's 302 you'll want to update that somewhere. If you use Yoast SEO maybe that can handle it, or you can do it in your .htaccess file. I've attached a screenshot showing a request to http://moz.com, you can see there's a 301 redirect - in this case to https://moz.com - the address is a bit different, but it's the same principle.
I thought of something while I was writing this, so I checked for you, and found:
- http://mefco.co.nz/news DOES use a HTTP 301 redirect to http://www.mefco.co.nz/news
- http://mefco.co.nz DOE NOT always use a HTTP 301 redirect to http://mefco.co.nz (I seem to sometimes get the redirect and sometimes not, I'm not sure if it's browser caching giving it to me or if your server sometimes returns it - you may have to use an incognito window, or clear your cache, or both, to see it, as 301 responses are notoriously hard to un-cache from browsers).
Does the non-/news section of the site use the same WP install? If only part of the URL is redirecting I imagine that Google & Moz may be slightly confused.
-
These things resolve themselves over time. Google (and Moz) have a record of what your site looked like. If they have 100 "pictures" of your pages and they see the www one, well that's new. We'll put that .. oh wait, it's duplicate.
They haven't gone back to see that the one it's a duplicate of is no longer there and is now redirecting. Once the bot crawls the new site entirely, those type of issues go away.
Your rankings should bounce back as soon as Google gets your domain crawled again. In the meantime if you don't have Search Console setup, do that. Go into the section that says Fetch as Google and get them to recrawl your site. Also, if you have a sitemap.xml on your site you can submit a sitemap through Search Console to help them crawl more of your site.
Those two things should get you back on track a bit quicker.
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
-
Please Help! Crawl & Site Errors - Will This Impact My SEO?
Hello Moz, I need urgent help. I remove a tonne of product pages and put everything into one product page to deal with duplicate content. I thought this was a good thing to do until I got an email from Google saying: "Googlebot identified a significant increase in the number of URLs on ****.com that return a 404 (not found) error. " I checked it out and found the problem: 4 Soft 404's
Technical SEO | | crocman
41 Not Found's What do I need to do to fix this? Is it a problem or should I just ignore? I removed all the pages on WordPress but I need to do it somehow manually through Google? I have worked so hard on my SERP's that this will destroy me if I'm penalised. Please can someone advise?0 -
Duplicate Page Content for www and non-www. Help!
Hi guys, having a bit of a tough time here... MOZ is reporting duplicate content for 21 pages on eagleplumbing.co.nz, however the reported duplicate is the www version of the page. For example: http://eagleplumbing.co.nz and http://www.eagleplumbing.co.nz are considered duplicates (see screenshot attached) Currently in search console I have just updated the non-www version to be set as the preferred version (I changed this back and forth twice today because I am confused!!!). Does anyone know what the correct course of action should be in this case? Things I have considered doing include: changing the preferred version to the www version in webmaster tools, setting up 301 redirects using a wordpress plugin called Eggplant 301 redirects. I have been doing some really awesome content creation and have created some good quality citations, so I think this is only thing that is eaffecting my rank. Any help would be greatly appreciated. view?usp=sharing
Technical SEO | | QRate0 -
Awful ranking after site redesign
Hello everyone, I have a situation here and I’d like to have your opinion about it. I am working on a site which has been recently redesigned from scratch: in a nutshell, as soon as the new site went live their rankings dropped and, of course, so did their visitors and so on.. The guys who redesigned the site didn’t do any 301 redirect whatsoever, so now the old pages are just 404s and blocked by robots. My question is: if they 301 redirect now, do you think it would be possible they could get their rankings back? One more thing: when they launched the new site, the indexed pages basically doubled overnight; there were 700 and now there are 1400. Do you think this could affect their ranking as well? Thank you for you insights 🙂 Elio
Technical SEO | | Eyah0 -
Site Launching, not SEO Ready
Hi, So, we have a site going up on Monday, that in many ways hasn't been gotten ready for search. The focus has been on functionality and UX rather than search, which is fair enough. As a result, I have a big list of things for the developer to complete after launch (like sorting out duplicate pages and adding titles that aren't "undefined" etc.). So, my question is whether it would be better to noindex the site until all the main things are sorted before essentially presenting search engines with the best version we can, or to have the site be indexed (duplicate pages and all) and sort these issues "live", as it were? Would either method be advisable over the other, or are there any other solutions? I just want to ensure we start ranking as well as possible as quickly as possible and don't know which way to go. Thanks so much!
Technical SEO | | LeahHutcheon0 -
What should the combined domain rank of 2 sites?
We have just combined 2 sites by redirecting a site with a domain ranking of 35 to a site with a domain ranking of 27 (this is because the we want to use the address with a ranking of 27) After a week I now have 1 domain with a ranking of 26?? So my questions are; Should the ranking have increased already? What should I expect the ranking to increase to if at all? Is there something I could have done wrong when transferring? Thanks
Technical SEO | | benj450 -
When to 301 a No1 ranking site to the new domain?
I have a site [company.com] that ranks number one for the products of my brand but I'm moving all the efforts to a dedicated brand domain. The old site covered a number of small brands and we had no dedicated brand sites, but we now focus on just this one brand and it doesn't belong on the old company domain name. BRAND belongs on the new brand.com Because of the age of the old company site and because it had the first copy about the brand, it's still ranking well for the brand product names, and the new site has some duplicate content issues that I'm in the throws of resolving. RANKS Company.com : number one for all product names Brand.com : nowhere for product brand names but top for the brand name (as I say, the product pages on this site have duplicate content issues which is likely keeping them ranked low - Hades low. I would rather not maintain two websites and I want to give brand.com every bit of available oomph , so should I at some point 301 the old company site to the new one? If so, is now the time? Thanks
Technical SEO | | Brocberry0 -
Development site accidentally got indexed and now appears in SERPs. How to fix?
I work at a design firm, and we just redesigned a website for a client. When it came time for the coding, we initially built a development site to work out all the kinks before going live. Then we relaunched the actual site about a week ago. Here's the problem: Somehow, the developer who coded the site for us (a freelancer) allowed the development site to be indexed by Google. Now, when you enter the client's name into Google, the development site appears higher in the results pages than the real site! In fact, the real site isn't even in the top 50 search results. The client is understandably angry about this for multiple reasons. We quickly added a robots.txt file to the development site and a 301 redirect to the real site. However, that did seemed to have no effect on the problem. Any ideas on how to fix this mess? Thank you in advance!
Technical SEO | | matt-145670 -
Help with SEO
Hello, I am brand new to SEO and I'm learning on the go everyday. I am having issues with Google and getting any sort of ranking or analysis or even just traffic reports. I understand the site has never really been optimized so it might really not have any reports. So basically my real question is what helpful tricks or hints do you guys have that I can implement? Anything and everything helps. So far I have run the crawl diagnostics and I'm working on fixing the errors. Thanks fr your help.
Technical SEO | | Future130