Canonical tag, CNAME and 301 redirect
-
I have a website with a couple of domains pointing to one IP address. Let's say I have two domains www.example.com and www.example.ca
I also see during my SEO analysis that the example.com and the www.example.com (same for the example.ca and the www.example.ca) are triggering server responses.
How do I deal with this issue for best SEO. Canonical links? CNAME, or 301 redirects? thanks
-
Oh yes... it was a mistyping from my part, sorry
-
Gianluca, thanks for your time. Before I ask my web host to do this one point of clarification. In step 2 you mention redirect of example.com to www.example.com Since www.example.ca is my focus should this be example.ca to www.example.ca or is it correct as stated?
-
It always better to do a 301... also because exists also Bing as a search engine, and it does not know what you have done in GWT
-
thanks very much. As suggested above I just went to google webmaster tools and did specify www.example.com and www.example.ca as the preferred domains. Do I still need to do 301 redirects as well or just a redirect from www.example.com to www.example.ca
-
301 all the other versions to the www.example.ca domain.
I mean...
- redirect 301 the .com domain to the .ca domain (this will take care both of sub-domain and root domain)
- redirect 301 example.com to www.example.com via .htaccess
If you don't do it you have a massive duplication issue... being www.example.ca stronger in link building, it is normal that the other (which are dupes) doesn't go well.
-
all four (www.example.com, example.com, www.example.ca and example.ca) have same content. I have focused all of my SEO efforts on the www.example.ca version. It now ranks well and has good authority and PR but I am concerned about the other versions. I though of adding a canonical tag to the header of the pages on the website making the www.example.ca version the canonical version and then doing 301 redirects (Do I redirect the www.example.com to www.example.ca and then redirect the example.ca to the www.example.ca or is there more to this?). I can easily go the cname route with my server host but I had heard that a 301 is better. Does this added info add clarity to what I am asking? thanks very much for your answers and time til now
-
First of all you have to choose what u are going to use www or no-www, then stick to this! I suggest the www version as most of the people use this when typing in urls directly in their browser.
Then go to your Google Webmaster Tools and set your preferred domain to your choice.
Last but not least make sure you have a redirect for the traffic that does use url without www... You can do this with an .htaccess file. This is a small text file that can handle your redirects.
I don't quite understand the other part, do all the domains share the same content? If so, you should use those canonical tags to indicate where the original content comes from...
-
Delete this for double posting (sorry)
-
In fact that's the way to have just the sub-domain www. appearing online.
And, sorry, I don't really understand the .ca e .com question... does those domains show the same content. In that case one of the two (.com if you target public worldwide or .ca if you target only Canada) should be redirected 301 to the other.
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
-
Delete old blog posts after 301 redirects to new pages?
Hi Moz Community, I've recently created several new pages on my site using much of the same copy from blog posts on the same topics (we did this for design flexibility and a few other reasons). The blogs and pages aren't exactly identical, as the new pages have much more content, but I don't think there's a point to having both and I don't want to have duplicate content, so we've used 301 redirects from the old blog posts to the new pages of the same topic. My question is: can I go ahead and delete the old blog posts? (Or would there be any reasons I shouldn't delete them?) I'm guessing with the 301 redirects, all will be well in the world and I can just delete the old posts, but I wanted to triple check to make sure. Thanks so much for your feedback, I really appreciate it!
Technical SEO | | TaraLP1 -
Using a 302 redirect for language variants. How should I use the canonical?
Hi there, I have a question regarding the canonical tag. The current setup is like so... www.site.com 302 redirects to.. www.site.com/de/ I want to add canonical tags on every page to avoid duplicate content but I'm not sure about the homepage. Should the canonical URL be www.site.com or www.site.com/de/ ? I'm concerned that I could be about to hurt my ranking. Thanks,
Technical SEO | | zuriwolf
Mitch0 -
Google Deindexing Site, but Reindexing 301 Redirected Version
A bit of a strange one, a client's .com site has recently been losing rankings on a daily basis, but traffic has barely budged. After some investigation, I found that the .co.uk domain (which has been 301 redirected for some years) has recently been indexed by Google. According to Ahrefs the .co.uk domain started gaining some rankings in early September, which has increased daily. All of these rankings are effectively being stolen from the .com site (but due to the 301 redirect, the site loses no traffic), so as one keyword disappears from the .com's ranking, it reappears on the .co.uk's ranking report. Even searching for the brand name now brings up the .co.uk version of the domain whereas less than a week ago the brand name brought up the .com domain. The redirects are all working fine. There's no instance of any URLs on the site or in the sitemaps leading to the .co.uk domain. The .co.uk domain does not have any backlinks except for a single results page on ask.com. The site hasn't recently had any design or development done, the last changes being made in June. Has anyone encountered this before? I'm not entirely sure how or why Google would start indexing 301'd URLs after several years of not indexing these.
Technical SEO | | lyuda550 -
301 Redirect with ASP (not .NET)
I'm looking to redirect non www to www and also .co.uk to .com. http://www.xxxxx.com is the intended target. http://xxxxx.com & http://www.xxxxx.co.uk & http://xxxxx.co.uk to redirect. I managed to do some of this but if I come through to a service page /services/cars.asp it redirects to the homepage. All I have so far is this code: <% If InStr(Request.ServerVariables("SERVER_NAME"),"www") = 0 ThenResponse.write "http://www." & Request.ServerVariables("HTTP_HOST") & Request.ServerVariables("URL") & "?" & Request.ServerVariables("QUERY_STRING")Response.EndEnd if %> What am I missing?
Technical SEO | | Hughescov0 -
Rel=Canonical on a page with 302 redirection existing
Hi SEOMoz! Can I have the rel=canonical tag on a URL page that has a 302 redirection? Does this harm the search engine friendliness of a content page / website? Thanks! Steve
Technical SEO | | sjcbayona-412180 -
How to 301 redirect via OpenCms/7.5.4
Hi everyone, My programmer told me it is impossible to do a permanent redirect from www.website.com/index.html to www.website.com due to cms technical limitation which I do not want to believe hence is it possible / is there documentation available instructing on how to do a proper 301 permanent redirect on OpenCMS 7.5.4? Thanks a lot! Steve
Technical SEO | | sjcbayona-412180 -
Is this a safe 301 redirect?
We are moving our site from one platform to another. Currently on our site we have two homepages. "www.homepage.com" and "www.homepage.com/Index" Both pages have some high quality links pointing in on them. The problem: We are going to be doing a 301 redirect from "www.homepage.com/Index" page to "www.homepage.com" as we are moving platforms at this time we weren't going to create a "www.homepage.com/Index" page all. This leaves this page as an empty URL. With this webpage disappearing all together will we lose traction as we are redirecting an empty URL? Or is it better to recreate this "www.homepage.com/Index" on our new platform redirect it and wait for google to deIndex this page for us? As well is there a tutorial for how to implement 301 redirects or is this something worth looking for a developer and pay someone to do?
Technical SEO | | HCGDiet0 -
301 redirect on the root of the site
Due to some historic difficulties with our URL Rewriter, we are in the position of having the root of our site 301 redirected to another page. So the root of our site: http://www.propertylive.co.uk/ has a 301 redirect to: http://www.propertylive.co.uk/home.aspx We're aware that this isn't great and we're working to fix this completely, but what impact will this have on our SEO?
Technical SEO | | LianWard860