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
-
Country and Language tags-Running an SEO audit on a site that definitely has more than one language, but nothing is pulling up. I don't quite understand href lang or how to go about it. HELP HELP!
Ran an SEO audit and I don't really understand country and language tags. For example, sony.com definitely has more than one language, but how do I seo check href lang ? Do I inspect the page? etc?
Technical SEO | | Mindgruver0 -
Exclude URL Parameters?
Hello, I am new in SEO and I am trying to understand the basics in URL parameters. Let’s assume that I have an ecommerce site with Categories (Category1, Category2) Views (listview=1, listview=2) Orders (OrderBy=1, OrderBy=2) Pages (pg=1, pg=2) Why should I add google to index pages with different views and Listing orders? What is the benefit for the site to have the same content with different order? I am not sure but maybe only need pages in order to google to “travel” between the pages? For example: www.mydomain.com/books/pg=1 www.mydomain.com/books/?order=date www.mydomain.com/books/?listview =1 The products in pages (pg) will always include products in order and listview? Why should google index again the content? Furthermore, from the last time that google index the pg=1 the products has changed. Thank you in advanced
Technical SEO | | ArisGast0 -
Structure Data Issue
HiI found few errors in Google webmaster tools under structure data. The error shows "Missing: name' but when I click 'Test Live Data' it shows 'All good'. Currently we are using Drupal CMS and please find attached error screenshot.Please advice on this issue.Thanks,SatlaqlGEyp7
Technical SEO | | TrulyTravel0 -
If I want clean up my URLs and take the "www.site.com/page.html" and make it "www.site.com/page" do I need a redirect?
If I want clean up my URLs and take the "www.site.com/page.html" and make it "www.site.com/page" do I need a redirect? If this scenario requires a 301 redirect no matter what, I might as well update the URL to be a little more keyword rich for the page while I'm at it. However, since these pages are ranking well I'd rather not lose any authority in the process and keep the URL just stripped of the ".html" (if that's possible). Thanks for you help! [edited for formatting]
Technical SEO | | Booj0 -
What directory should a site go in (url structure)?
Hi All, The is the first actual SEO campaign i've worked on and I had a few question about where the site should live on the server and url structure. The site is in WP and we're using Yoast SEO. Anyway the site lives in a a folder called Coastal, which is a child of the WWW folder. So the permalink of the homepage is mcoastalwindows.com/coastal/. The URL is mycoastalwindows.com. The thing is I can still get to the homepage or any of the pages on the site by typing in the /coastal/. Another example is permalink mycoastalwndows.com/coastal/siding/ and url mycoastalwindows.com/siding/. The urls always display without the /coastal/, so I'm not too worried about people linking to them, but Yoast puts a canonical element to the permalink and always includes the /coastal/. Also I'm seeing that Google displays a lot of the urls with the /coastal/, which is an issue seeing as we don't link to the pages that way. My original thought was to solve this at the source and just move everything out of the coastal directory, but the developer swears that it's more secure being in another folder especially with WP. What would you all do and what is best practice? Would you move everything out of the coastal folder, 301 re-direct, do something with. htaccess, or another solution? Appreciate the input thanks!
Technical SEO | | Mario.Souza0 -
Regarding Structured Data
I was wondering if you have any insight as to why my star ratings are yet to show up in google SERPs. I've set up a test (months ago) just to test the formatting, my code looks like this: <span typeof="<a class="attribute-value">v:Review-aggregate</a>" xmlns:v="<a class="attribute-value">http://rdf.data-vocabulary.org/#</a>">There are currently <span property="<a class="attribute-value">v:count</a>">15span> reviews for <span property="<a class="attribute-value">v:itemreviewed</a>">Ford Mustang brakesspan> with an average rating of <span rel="<a class="attribute-value">v:rating</a>"><span typeof="<a class="attribute-value">v:Rating</a>"><span property="<a class="attribute-value">v:average</a>">4.50span> out of <span property="<a class="attribute-value">v:best</a>">5span> stars.span>span>span> Any ideas why it hasn't show up yet?
Technical SEO | | andrewv0 -
What is the first step for EMD ?
I recently purchased EMD and it was been indexed by google. I also add one unique content that was also indexed but didn't try any SEO yet.. I already installed Yoast SEO plugin for that.. can you let me know which is fastest method to get my EMD well ranked...
Technical SEO | | xplodeguru0 -
Help with google adsense
Hi i wonder if anyone can help me with google adsense. I am having trouble making money with google adsense. I have been altering my pages to try and get better results with google adsense but nothing works. my traffic at the moment is about 3000 visitors a day but this should be doubled to around 6000 a day within the next two months. here is the layout of a typical page and i would be grateful for any advice on how to alter it to make money with google adsense http://www.in2town.co.uk/showbiz-gossip/rihanna-news/rihanna-shocks-fans-over-her-sexy-body-claims
Technical SEO | | ClaireH-1848860