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
-
Moving site from html to Wordpress site: Should I port all old pages and redirect?
Any help would be appreciated. I am porting an old legacy .html site, which has about 500,000 visitors/month and over 10,000 pages to a new custom Wordpress site with a responsive design (long overdue, of course) that has been written and only needs a few finishing touches, and which includes many database features to generate new pages that did not previously exist. My questions are: Should I bother to port over older pages that are "thin" and have no incoming links, such that reworking them would take time away from the need to port quickly? I will be restructuring the legacy URLs to be lean and clean, so 301 redirects will be necessary. I know that there will be link juice loss, but how long does it usually take for the redirects to "take hold?" I will be moving to https at the same time to avoid yet another porting issue. Many thanks for any advice and opinions as I embark on this massive data entry project.
Technical SEO | | gheh20130 -
What are the SEO considerations when migrating a whole site from http to https
Hi Mozzers, I'm in the process of migrating a whole site, which has excellent rankings built through ongoing SEO over the years, from http to https. What is the safest way of doing this, while maintaining rankings? I'm assuming 301 redirect of every page from http to https? Thanks!
Technical SEO | | A_Q1 -
Are backlinks the reason for my site's much lower SERP ranking, despite similar content?
Hi all, I'm trying to determine why my site (surfaceoptics.com) ranks so much lower than my competitor's sites. I do not believe the site / page content explains this differential in ranking, and I've done on-site / on-page SEO work without much or any improvement. In fact I believe my site is very similar in quality to competitor sites that rank much higher for my target keyword of: hyperspectral imaging. This leads me to believe there is a technical problem with the site that I'm not seeing, or that the answer lies in our backlink profile. The problem is that I've compared our site with 4 of our competitors in the Open Site Explorer and I'm not seeing a strong trend when it comes to backlinks either. Some competitors have more links / better backlink profiles but then other sites have no external links to their pages and lower PA and DA and still outrank us by 30+ positions. How should I go about determining if the problem is backlinks or some technical issue with the site?
Technical SEO | | erin_soc0 -
How do sites manage to rank better with no fresh content
hi, trying to work out why there are lots of sites that are ranking better than me. Our site www.in2town.co.uk has always been on the first page and for a long time we were number one in google for the term lifestyle magazine as well as being on the first page for other keywords. Our site is www.in2town.co.uk We had a site upgrade a few months ago and since then we have seen our rankings have dropped like a lead balloon. I do not understand why sites such as the following seem to rank better than me for the word lifestyle magazine http://www.lifestyle.org/ http://www.24sevenlifestyle.com/ http://www.lifestylesmagazine.com/website/ http://motabilitylifestyle.co.uk/ http://www.alifestylemagazine.com/ if anyone can help me understand what i am doing wrong and why my rankings have gone out of the window then it would be a huge help.
Technical SEO | | ClaireH-1848860 -
How Much Long To Wait For Rank After Done SEO - Very Nervous!!!
I have done SEO like PR, AD, Web 2.0, Link Building and so on. for the one keyword but after 1 week i didn't see the right result.. my keyword was stuck in 15-20th position and only 1 time appear on top 10 position and that is for only 1 day. Keyword Competition according to google adwords tool: Global - 1300 Local - 590 Competition - Low please advice..I am so disappointed now. My On page report is A+ according to seomoz tool..
Technical SEO | | xplodeguru0 -
Please help me critique my friends site
Hi All, I've regularly helped others on this forum when they've asked for tips on how to improve a specific site's SEO. Now I'm asking for the favour in return 🙂 My friend has come to me with a site (http://www.swishplastic.com.au) and asked me to help with SEO and on-page optimisation. I've got a few of my own ideas but there may be a few key things I'm overlooking. If anyone could give a few pointers, it would be much appreciated! Thanks!
Technical SEO | | bradkrussell0 -
Can a Joomla template ruin a sites on-page seo?
Have been looking into a potential clients site that performs really badly, when I took a look in 'googlebot view' I see that every on page link appears- [visit camp26.biz] clients link title as expected insures against a negative affect. But having that as the first two words of every link title/anchor in the eyes of Google would seem to be something to be concerned about? Have tried searching for answers to this online but template providers are so prevelant everywhere I can't find any decent information on this issue. If anyone can throw some light on this for me it will be much appreciated : )
Technical SEO | | steve821 -
Looking for some help adding a 301 redirect for my Site
Hi there, I am trying to eliminate the 'www' using a 301 redirect script as I have duplicate page titles for both versions (with and without the 'www') I checked the page authority and found the pages without the 'www' to be ranked higher. For this reason I believe it would be wise to go for this option. I have an .htaccess file, all I need is the code and I should be ok 🙂 Thanks!
Technical SEO | | debeenus0