Considering redirecting or canonicalization - Best Practice
-
Hi,
I'm having a techinical problem and I would like advise on the effects this is having on my SEO efforts.
My old site www.oldsiteexample.com (live for about 8 years)
Directs to my new site www.example.com which is fine BUT
When I type me new website into the tool bar both sides are found & do not direct to one domain;
www.example.com & example.com (both the same site)
What is the best practice here? Direct my new non www to my new www site considering my old website directs to the www.
Advise & the SEO affects this is having my website would be greatly appreciated, thank you.
-
MJ, the challenge with that suggestion is it sounds like you are maintaining two websites. That solution would not work for any situation with UGC or any data which changes over time.
Even in cases where the pages were purely static content, a canonical tag would notify search engines of the page you wish to be indexed but not users.
-
A 301 will pass over the link equity also!
-
Also, Ryan is of course correct to say you can use the www. or non www. version - I just have a preference for www. because I think it looks neater!
-
I agree that a 301 is most certainly the best long term solution; however the canonical also provides an opportunity to send over some of the value to the new page/domain before you do that. Hence I usually implement the canonical for a month or two, then redirect. Especially when you're moving to a new domain, it's a good way to faze in the move over rather than going cold turkey, as it were.
If the site has over 600 pages, I'd pick the 50-100 most common landing pages (see Google Analytics) and transfer them. If 10 of the pages get 10000 visits each and the other 590 get 2 visits each, maybe just do the top ten. Hope that makes sense!
-
You can use the www or non-www version of your site. The important thing is to choose one version and remain consistent. It sounds like you prefer the "www" version which is a perfectly fine choice.
When given a choice between canonical or 301, the best practice is 301. Both work, but a 301 is preferred.
Two additional best practices:
1. I know it can be a lot of work but you really should redirect each page of the old site to the corresponding page on the new site. If you simply changed domains the 301 can be written with a single regex statement to replace "oldsiteexample.com" with "example.com"
2. Check your existing 301s on the old site and adjust them to directly point to the new site. You want to avoid any instances where a user has to hop through multiple 301s to arrive at a target page.
-
cheers for the advise. a) I'm looking to transfer the value from my old domain to my new one.
The site has over 600 pages, It wouldn't really be ideal for me to put canonical tags on each of the old pages to the relevant new pages. (can this be done automatically?)
B) Yes I was looking for advise on the new site and which domain should be the main ie: the www (I'll go with the www considering my old site directs to the www)
-
P.S. for got b) !! If it's b), I always redirect to the www. page. You can set that in webmaster tools and also do server side redirects.
-
Not 100% sure what you're asking - do you want to a) transfer value from an old domain to a new domain? Or b) do you want to know whether you should redirect non-www. URLs to the www. equivalent?
If it's a), I'd keep the old site live for a couple of months and set up canonical tags on each page and point them towards the most relevant page on the new site. Leave that to sink in for a couple of months, then I'd 301 pages on the old site to the new site (to the same pages you'd pointed them at with the canonical tag). Leave the 301s in place for at least 180 days, after that you can kill the old site altogether.
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
-
How do I fix a 404 redirect chain
How do I fix a 404 redirect chain? I can't seem to find the answer and I'm worried about it effecting my SEO. Any help would be great!
Technical SEO | | sammecooper0 -
301 redirect file question
Hi Everyone, I am creating a list of 301 redirects to give to a developer to put into Magento. I used Screaming Frog to crawl the site, but I have noticed that all of their urls 302 to another page. I am wondering if I should 301 the first URL to the url on the new site, or the second. I am thinking the first, but would love some confirmation. Thank you!
Technical SEO | | mrbobland0 -
Best Practices for Image Optimisation
Hi Guys, I would love some recommendations from you all. A potential client of mine is currently hosting all their website image galleries (of which there are many) on a flickr account and realise that they could gain more leverage in Google images (currently none of their images cover off any of the basics for optimisation eg filename, alt text etc), I did say that these basics would at least need to be covered off and that Image hosting is supposedly an important factor especially when it comes to driving traffic from Google Image Search. (potentially images hosted on the same domain as the text are given more value than the images hosted at another domain like websites such as Flickr). The client has now come back saying they have done some 'reading' and that this suggests a sub-domain could be the way to go, e.g. images.mydomain.com - would love feedback on this before I go back to them as it would be a huge undertaking for them. Cheers
Technical SEO | | musthavemarketing0 -
301 Redirects in subfolders
Hi, we're making our site into a static site but I would like to transfer the Google juice. Most of the links and database exist on subfolders though. Could I simply do 301 redirects on the subfolders and retain the value or does it have to be on the full domain?
Technical SEO | | Therealmattyd0 -
What to do with 302 redirects being indexed
Hi there, Our site's forums include permalinks that for some reason uses an intermediary URL that 302 redirects to the URL with the permalink anchor. For example: http://en.tradimo.com/learn/chart-analysis/time-frames/ In the comments, there is a permalink to the following URL; en.tradimo.com/co/50c450005f2b949e3200001b/ (there is no content here, and never has been). This URL 302 redirects to the following final URL: http://en.tradimo.com/learn/chart-analysis/time-frames/?offset=0&limit=20#50c450005f2b949e3200001b The problem is, Google is indexing the redirect URL (en.tradimo.com/co/50c450005f2b949e3200001b/) and showing duplicate content even though we are using the nofollow tag on these links. Ideally, we would directly use the last link rather than redirecting. Alternatively, I'd say a 301 redirect would be preferable. But if both aren't available, is there a way to get these pages out of the index? Is the canonical tag the best way? I really wish I could just add /co/ to the robots.txt file, but I think they would still be in the index, right? Thanks for your help!
Technical SEO | | etruvian0 -
What is the best permalink structure for WordPress?
Hi, Does anyone have practical knowledge of the best permalink structure to use in WordPress? I have seen recommendations for just the post name or category and post name and then some who suggest having 3 digits as part of the structure for pick up in Google news. I am left a little confused - does anyone have practical experience of the best structure please?
Technical SEO | | Wallander0 -
Multiple redirects a problem?
When product is sold out I will 301 redirect to a category page if a similar product is not available, but now our web developer has changed all the url's of the category pages so I need to redirect them all to the new category pages but that means there are some products that are first being redirected to the no longer existent category and then being redirected again to the new category page. This seems like it might me be a problem having two 301 redirects so I wanted to find out for sure if it is. Unfortunately our system for redirecting pages is archaic so it will be difficult and time consuming to go back and redo all the redirects that are going to pages that no longer exist so I wanted to get some additional opinions before I do that.
Technical SEO | | KentH0 -
Query String Redirection
In PHP, I'm wanting to store a session variable based upon a link that's clicked. I'm wanting to avoid query strings on pages that have content. My current workaround is to have a link with query strings to a php file that does nothing but snags the variables via $_GET, stores them into $_SESSION, and then redirects. For example, consider this script, that I have set up to force to a mobile version. Accessed via something like a href="forcemobile.php?url=(the current filename)" session_start(); //Location of vertstudios file on your localhost. Include trailing slash $loc = "http://localhost/web/vertstudios/"; //If GET variable not defined, this page is being accessed directly. //In that case, force to 404 page. Same case for if mobile session variable //not defined. if(!(isset($_GET["url"]) && isset($_SESSION["mobile"]))){ header("Location: http://www.vertstudios.com/404.php"); exit(); } //Snag the URL $url = $_GET["url"]; //Set the mobile session to true, and redirect to specified URL $_SESSION["mobile"] = true;header("Location: " . $loc . $url); ?> Will this circumvent the issue caused by using query strings?
Technical SEO | | JoeQuery0