Help with steps to take when fixing cannonical url structure?
-
I would like to 301 redirect all the variations of my site to a single url but would like some clarification on some issues. I have always been confused about how to handle cannonicalization and hopefully this can clear it up for me and others.
This particular site is about 1 year old and gets approximately 15k uniques a month in a great niche. I want to make sure I do this correctly as to not hurt my existing rankings which are quite good. Here is is what I am unsure about.
- Basically I should pick the best url structure to redirect all the others to correct? What determines what url is best to redirect all the rest to? is it www.domain.com, http://domain.com or http://www.domain.com?
- Is the best one to redirect to always standard and something I should set up at the beginning of my site? Or is picking the best url to redirect to based on what url starts to rank in google and you then use that one?
- Should I be going through each of my rankings and seeing what url is ranking in google for each page? On this particular site ALL of my urls in google have no www. or http but instead show up in the SE as domain.com or domain.com/inner-page/html. In that case what do I do?
- I know the slow way to do redirects. I use my hostgator account and do it in cpanel and do it one by one. Is there a faster way where I can go and make lots of changes at once? Maybe I can choose all the variations and put in the one I want them all to redirect to?
- After I figure the above out is fixing all of this as simple as redirecting ALL variations to the one I will use moving forward for each page on my site? Then I am done?
Thanks again for the help!
Jake
-
is there a simple code I put somewhere in there?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com$
RewriteRule (.*) http://www.mysite.com/$1 [R=301,L]replace "mysite" with the name of your site
do you see on there that he says its important to leave trailing / on folders
Generally speaking a URL that ends in a slash represents a folder. A URL that ends without a slash represents a page or file.
With respect to www or non-www, there is absolutely no preference from a pure SEO perspective. Either way you chose I would use the http:// prefix as it represents the complete URL.
-
Awesome Ryan! Thank you. This kind of stuff is the part I am SO lost about. I bet I would increase my rankings 500% if I could figure out the technical stuff!
Ok just quick clarification.
So there is no "better" version between http:// and http://www.? That is what I thought but on this guide it says that http://www. is best? http://static.seomoz.org/user_files/SEO_Web_Developer_Cheat_Sheet.pdf
I guess to be safe I could do that but I wonder if it really matters?Also do you see on there that he says its important to leave trailing / on folders.
I do know how to access my htaccess file is there a simple code I put somewhere in there? I am going to go with http://
Thanks for the awesome help!
Jake
-
What determines what url is best to redirect all the rest to? is it www.domain.com, http://domain.com or http://www.domain.com?
The "http://" portion is required for a complete URL. "http://www.domain.com" is the same as "www.domain.com". If you omit the "http://" prefix, all major browsers understand your request and will prepend the URL appropriately.
You can choose either the "www" or "non-www" form of the URL to represent your site. It doesn't matter to search engines. What does matter is that you make a choice and remain consistent.
For an existing site, examine the links you have to both URL forms. As a guide, I would recommend choosing the URL format which has the most authorative linking domains.
Is the best one to redirect to always standard and something I should set up at the beginning of my site?
Yes. You should choose before the site begins attracting traffic.
Should I be going through each of my rankings and seeing what url is ranking in google for each page?
You should make one choice for your entire site. It would be a really bad idea to have some pages use the "www" subdomain while others do not. You would be dividing your traffic into two separate domains which you do not want to do.
Use OpenSiteExplorer.org and Google WMT to determine which domain has the most linking authority.
Is there a faster way where I can go and make lots of changes at once?
You can redirect your entire site with a single statement in htaccess. Since you are using cPanel there is probably a "Redirect" application you can use to make this change. I would recommend contacting hostgator and informing them of your wishes. It is very quick and easy for a managed host to make the change for you. If you are not familiar with the process, it is far better to allow them to make the change for you.
Summary: review your backlinks, make your choice, inform hostgator and request them to make the change. After, test the change. If you choose to keep the "www" prefix, try accessing a few pages without the prefix. You should reach the page and see the "www" portion added to the URL. If the process is set up correctly you are 100% done.
Some SEOs may advise you to use canonicals or update your choice in Google/Bing Webmaster Tools. You can do both but once you set the redirect correctly the results will take care of themselves. Expect it can take up to a month for all of your URLs to appear correctly in SERPs. If you update the change in WMT, it will appear faster in SERPs.
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
-
Japanese URL-structured sitemap (pages) not being indexed by Bing Webmaster Tools
Hello everyone, I am facing an issue with the sitemap submission feature in Bing Webmaster Tools for a Japanese language subdirectory domain project. Just to outline the key points: The website is based on a subdirectory URL ( example.com/ja/ ) The Japanese URLs (when pages are published in WordPress) are not being encoded. They are entered in pure Kanji. Google Webmaster Tools, for instance, has no issues reading and indexing the page's URLs in its sitemap submission area (all pages are being indexed). When it comes to Bing Webmaster Tools it's a different story, though. Basically, after the sitemap has been submitted ( example.com/ja/sitemap.xml ), it does report an error that it failed to download this part of the sitemap: "page-sitemap.xml" (basically the sitemap featuring all the sites pages). That means that no URLs have been submitted to Bing either. My apprehension is that Bing Webmaster Tools does not understand the Japanese URLs (or the Kanji for that matter). Therefore, I generally wonder what the correct way is to go on about this. When viewing the sitemap ( example.com/ja/page-sitemap.xml ) in a web browser, though, the Japanese URL's characters are already displayed as encoded. I am not sure if submitting the Kanji style URLs separately is a solution. In Bing Webmaster Tools this can only be done on the root domain level ( example.com ). However, surely there must be a way to make Bing's sitemap submission understand Japanese style sitemaps? Many thanks everyone for any advice!
Technical SEO | | Hermski0 -
WP URL issue - Concatenated URLs (LOTS of them)
WP is doing this somehow, and creating URLs for hundreds of pages that don't exist. HOW is this happening, and how do I stop It? I have many, many URLS like this: https://www.atouchofrust.com/terms-of-use/atouchofrust.com/vendor-news. Of note, atouchofrust.com/terms-of-use, and atouchofrust.com/vendor-news are both legit pages on the site. Why they are being concatenated is beyond my limited understanding of WP. Please, somebody, help. Cori
Technical SEO | | FlyingC0 -
URL Redirect
Hi All, So we have employees who can own their own domains for business, however, one employee has a domain that links back to our main site, but when it does, the URL and Page title of our main site, still say his own domain. IE: www.johndoe.com links to www.mysite.com except the url and itle still say www.johndoe.com What are the implications of this? Thank you
Technical SEO | | PeteEllard0 -
Url rewrite subfolder
Hi, How can i rewrite example.com/example1/example2/example3 to example.com/example3 And is there tools or software that can generate url rewrite... (not a plugin) Thanks !
Technical SEO | | bigrat950 -
Should I change or redirect this URL?
Happy Friday everyone! I just noticed that one of our Attorney Profile's url's is wrong. We used to have someone named "Dana Fortugno" as our Family Law attorney, but when he left, (over two years ago) we hired "Scott Finelli." The person who setup the site, just changed the information on the page not url. So instead of it saying "http://www.kempruge.com/scott-finelli-jd-llm/;" it says "http://www.kempruge.com/dana-fortugno-jd-llm/." I'm considering taking all the content on the page with the wrong url, copying it to a new page with the correct URL and 301 redirecting (what would now be a blank page) to the new page with the correct URL. Is this the best way to handle this? Also, I don't believe there are many SEO concerns regarding the pages specifically. The profile pages aren't what we rank for in any of our Family Law related keywords. I am worried about having a completely blank page that just 301 redirects as looking bad to google, but not sure if it would? As always, thank you for your time and any assistance you can provide. Ruben
Technical SEO | | KempRugeLawGroup0 -
How to find original URLS after Hosting Company added canonical URLs, URL rewrites and duplicate content.
We recently changed hosting companies for our ecommerce website. The hosting company added some functionality such that duplicate content and/or mirrored pages appear in the search engines. To fix this problem, the hosting company created both canonical URLs and URL rewrites. Now, we have page A (which is the original page with all the link juice) and page B (which is the new page with no link juice or SEO value). Both pages have the same content, with different URLs. I understand that a canonical URL is the way to tell the search engines which page is the preferred page in cases of duplicate content and mirrored pages. I also understand that canonical URLs tell the search engine that page B is a copy of page A, but page A is the preferred page to index. The problem we now face is that the hosting company made page A a copy of page B, rather than the other way around. But page A is the original page with the seo value and link juice, while page B is the new page with no value. As a result, the search engines are now prioritizing the newly created page over the original one. I believe the solution is to reverse this and make it so that page B (the new page) is a copy of page A (the original page). Now, I would simply need to put the original URL as the canonical URL for the duplicate pages. The problem is, with all the rewrites and changes in functionality, I no longer know which URLs have the backlinks that are creating this SEO value. I figure if I can find the back links to the original page, then I can find out the original web address of the original pages. My question is, how can I search for back links on the web in such a way that I can figure out the URL that all of these back links are pointing to in order to make that URL the canonical URL for all the new, duplicate pages.
Technical SEO | | CABLES0 -
Help internet archive
Hi can anyone help me. I am trying to track information from sites. I am at the moment got solicitiors involved ref trade mark of a name and we are trying to prove that this name was being used before the trade mark application. A company has gone ahead with a trade mark in full knowledge that this is a common name and we have been told if we can prove that the name was being used before it was registered then we can knock out the trade mark. We have been told there is an internet archive but i cannot find one, can anyone please let me know how i can look at sites from before 2010 and see about if they were using this word to help our case.
Technical SEO | | ClaireH-1848860 -
URL Structure with deep Categories
Ladies n gents Which sort of URLs do you suggest for Webshops with a deep structure of categories: http://www.yourdomain.com/cat1/cat2/cat3/cat4/cat5/cat6/ (could get really long) or better use just the last 2 categories: http://www.yourdomain.com/cat5/cat6/ ? thanks for your suggestions seth
Technical SEO | | sethgecko0