Www to non www redirect
-
HI there,
I was worried that my folder was not being crawled as when I searched for site:www.thekeepsakeco.co.uk/marketplace nothing came up but today I tried site:thekeepsakeco.co.uk/marketplace it does. So it is forwarding the www to the non www. When I do a search on links or analyse the domain it says there is a forwarder in place.
My site used to dominate in my niche and now is not doing very well since I moved to the new site. I know I did not handle the move well but wonder what I can do about it and wonder if this redirect is causing issues. So any link building it probably going to www. rather than non www so does that mean they are not counting.
What would you do? move everything back to www and could I do a 301 redirect for the whole folder?
Any help greatly received!
Kindest regards
Victoria
Thanks
Victoria
-
A 200 does mean "OK" - for that URL (note - not for the site).
So, if you want the www. version indexed rather than the non-www version then you want http://www.keepsake.... so return a 200 response ("Yes - this URL is OK"), but you want http://keepsake... to return a 301 ("This URL is not OK. It has moved to http://www.keepsake... ").
As I say, some of your URLs do that correctly, so whoever put the redirects in place understood what they were aiming for. However the ones with the trailing slash don't.
Is that a little clearer?
-
Thanks Billy - I did it back at the beginning of the new year I would say. I will see if I can go through and do all the re-directs again. Thanks
-
Thanks for looking at this for me in such detail. I thought a 200 response meant everything was ok with the site?
-
This baffled me for a moment. However I think that you have some bad regex in your .htaccess as not everything is being caught by that 301.
For instance:
http://thekeepsakeco.co.uk/marketplace/store/products/magic-mallow-impression-kit
301s just fine, yet add the trailing slash...http://thekeepsakeco.co.uk/marketplace/store/products/magic-mallow-impression-kit/
and you get a 200 response.That seems to happen across a lot of URLs for you.
If you do search for site:thekeepsakeco.co.uk -inurl:www.thekeepsakeco.co.uk you'll see the ones that have already been indexed (there may be more of course). I've checked about 10 of those for you and they were returning the 200 status.
Still not sure why I thought it was 302ing yesterday. I checked your homepage before I responded and I swear it was a 302. However that 200 response would seem to be your issue.
-
when was your site moved over to the new site? You say that didn't go well and I have to wonder if you left out a lot of redirecting there. If it hasnt been to long and Google still has the old site indexed (or even if not if you had good links) I would make sure you redirect every page of your old website to the relevant page of your new website.
-
Thanks for your time Matt - I can not find any 302's anywhere and only 301 and when I do a redirect check on http://www.webtoolhub.com/tn561352-url-redirection-checker.aspx it comes back as 301.
If it is 301 is it ok or can you show me how to see the 302?
-
HI Victoria,
The problem is that you have used the wrong type of redirect.
You are using a 302 redirect. This is a temporary redirect. Search engines treat this as "This has moved, but don't update anything - it'll be back soon".
What you want is a 301 redirect. This is more "This has changed address - please update all records".
This should be a very simple task for whoever did the redirect for you. They will probably have to literally change 1 character!
I hope that helps.
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
-
Redirect chains error on the home page URL
Hello Everyone, I'm getting redirect chains error on the home page URL:
On-Page Optimization | | Nikhil_Falcon
http://ebitdacatalyst.com in Wordpress. I've checked my redirection list in the plugin, and haven't found any redirections on http://ebitdacatalyst.com. Can anyone please help me in solving this issue? I don't know where from it's coming.0 -
Redirect and Redirect Error in Moz Crawl
Hello, We have a wordpress blog attached to our magento website located at domain.co.uk/blog/ Moz was coming back showing we had multiple page versions on show (http and https) So i updated the htaccess file to what is below. This has fixed most of the errors, however the homepage is being a little tricky. Moz is now saying that the page is redirecting and redirecting again http://www.domain.co.uk/blog to
On-Page Optimization | | ATP
http://www.domain.co.uk/blog/ to
https://www.domain.co.uk/blog/ BEGIN WordPress <ifmodule mod_rewrite.c="">RewriteEngine On
RewriteBase /blog/</ifmodule> RewriteCond %{HTTPS} !=on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L] END WordPress Within wordpress settings the urls are set up as follows Wordpress Address URL: https://www.domain.co.uk/blog Site Address URL: https://www.domain.co.uk/blog i tried to add a trailing / to these but it gets automatically removed. So i am assuming that wordpress is serving up https://www.domain.co.uk/blog **RewriteBase /blog/ **is re-directing it to / then my https rewrite is re-directing it again I am not sure where exactly to fix this, could anybody advise? Many thanks,0 -
Removing non www and index.php
Hi, I'm green when it comes to altering the htaccess file to remove non www and index.php. I think I've managed to redirect the urls to www however not sure if I've managed to remove the index.php. I'm pasting the contents of the htaccess file here maybe someone can identify if I have unwanted lines of code and if it is up to standard (there are a lot of comments in #) not sure if needed but I've left them as I don't want to screw up anything. Thanks 🙂 @package Joomla @copyright Copyright (C) 2005 - 2016 Open Source Matters. All rights reserved. @license GNU General Public License version 2 or later; see LICENSE.txt READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE! The line 'Options +FollowSymLinks' may cause problems with some server configurations. It is required for the use of mod_rewrite, but it may have already been set by your server administrator in a way that disallows changing it in this .htaccess file. If using it causes your site to produce an error, comment it out (add # to the beginning of the line), reload your site in your browser and test your sef urls. If they work, then it has been set by your server administrator and you do not need to set it here. No directory listings IndexIgnore * Can be commented out if causes errors, see notes above. Options +FollowSymlinks
On-Page Optimization | | KeithBugeja
Options -Indexes Mod_rewrite in use. RewriteEngine On
RewriteCond %{REQUEST_URI} ^/index.php/
RewriteRule ^index.php/(.*) /$1 [R,L] Begin - Rewrite rules to block out some common exploits. If you experience problems on your site then comment out the operations listed below by adding a # to the beginning of the line. This attempts to block the most common type of exploit attempts on Joomla! Block any script trying to base64_encode data within the URL. RewriteCond %{QUERY_STRING} base64_encode[^(]([^)]) [OR] Block any script that includes a0 -
Lost Page Rank after directing http:// to WWW?
Hi I am trying to redirect all the non www urls to WWW. After I redirected them, most of my category page PR are dropped to 0. Can someone please tell me if this is the normal after effect after the redirect? Example url: this is PR2 before the redirect http://www.ilovebodykits.com/category/95/Body_Kits_Front_Bumpers.html
On-Page Optimization | | ilovebodykits0 -
Can you 301 redirect to a page that has other pages 301 to it?
Two years ago updated url page to include better keywords and used a 301 redirect from the old page to the new. so www.example.com/keyword-1st-generation.html now points to ... www.example.com/keyword-2nd-generation.html That moved the pages up in ranking, but now have better kw for the url, so is it okay to redirect the /keyword-2nd-geration-html to www.example.com/keyword-3rd-generation.html And what is a good length of time before removing the 1st-generation url? It's been 3 years and there is no chance of using it again. Plus, no sign of it in analytics.
On-Page Optimization | | AllIsWell0 -
Redirecting to an exact match root domain: good, bad, or neutral?
We have a client who wants to secure an exact match domain for their new website, but it's very long. They're wondering about securing an additional domain that is much shorter for marketing purposes (business cards, email addresses, etc). We would then 301 redirect the short domain to the main domain. Are we going to see negative SEO implications from that?
On-Page Optimization | | MackenzieFogelson1 -
Re-write homepage url for non EMD for SEO
Hi, A lot of talk about EMD's lately not just here but all over SEO and affiliate forums. I've dabbled in emd's but have decided to go against the grain and use a non emd. I think I can optimise hard enough to rank and at the same time build a brand, which is where most emd's fail. But my question is this: If you are targeting lets say the term 'running trainers' and the domain is runyoursocksoff.com would it be more beneficial to rewrite the root domain to this: runyoursocksoff.com/running-trainers/ It does look messy to me and more then likely I would not use this but I have seen it a few times and was wondering if its a work around for non emd's.
On-Page Optimization | | activitysuper0 -
Www1 and www domain
hi, I have a client who has an e-commerce business. My client does not want to fill the pages with too much content and has set up a www1 version with the same domain-name as the www. The plan is to create a lot of content and push www1 in ranking and then sending users (via links) to the www for ordering. Although there will be no duplicate content published on www and www1 this seems like an odd strategy, especially since the www already has a good page rank, and I'm not sure about how engines view a www.domain.com and www1domain.com situation even with unique content in each. Any thoughts?
On-Page Optimization | | vibelingo0