How do you treat http/https and slashes at the end of a site?
-
- I believe there is a difference between http://www.abc.com vs https://www.abc.com
I also know that it shows security and whatnot, but how do you treat it? Do you submit both? Do you re-direct one to the other? What if you have had the non-secure site for years and the links are mostly crawled?
- My second question is similar as my report shows these two as different: http://www.abc.com/blog vs http://www.abc.com/blog/
I didn't think it made a difference, but when I submitted the links to Google it would not accept them without the slash at the end. Again, the same questions as above in regards to how to treat it. Do you submit both? Do you re-direct one to the other? What if you have had the non-slash site for years and the links are mostly crawled?
-What about http://www.abc.com vs http://abc.com ? They go to the same page, but are they treated the same?
-
Hi Tiffany,
There is a difference between all of these URLs, as far as Google is concerned. If a URL has any one characters different to another, Google considers it to be different. This is true even if the pages each URL loads are exactly the same.
For all of these URLs, you should choose one that you consider to be the "proper" URL. Call this the "canonical" URL - the correct version. There is no gold standard for which versions you should choose, besides for one, which I'll get into later: https://www.abc.com/ is realistically not better or worse than http://abc.com/.
However, you might have a good reason why the entire site should be on HTTPS URLs, i.e. on secured as opposed to unsecured URLs.
Some people choose to not use the "version" of their site that loads with "www" - again, there is no benefit or detriment either way.
For the abc.com/blog/ example, the general rule is that **if more content site beneath the /blog/ subfolder, the URL should have a trailing slash. **If "/blog is just a page with nothing housed beneath it (i.e. there are no pages like www.abc.com/blog/2014/post.html), then you can leave the trailing slash off if you like.
No matter which versions you choose, all alternative versions should be 301 redirected to the canonical version (the one you chose as your preference). If you choose http://www.abc.com/ and someone types in https://abc.com/, they should be 301 redirected to http://www.abc.com/.
The other option is to place the canonical tag on each "alternative" version, pointing to the canonical URL of that page. This means that https://abc.com/, etc. load, but the canonical tag tells Google that the primary version is not on this URL, but on the one you specify in the tag. This is quite easy to do: each URL will be pulling its content from the same file (that is, there are not usually two files for the home page, one populating www.abc.com and one populating http://abc.com - it is the same file being displayed on different URLs). As such, that one file needs to have the canonical tag indicating your desired canonical URL. Each page requires its own canonical tag, indicating the desired URL.
301 redirection to the canonical URLs is the traditional way of getting this done.
Cheers,
Jane
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
-
Canonical in Shop Areas of an E-commerce Site. When and Where?
Hi Guys. A quick one about duplicate content... So we have a lot of pages that are very similar on our site, but are actually different products. e.g) Our Fortnight view refills and our week to view refills. Our MOZ report defines this as duplicate content. Question: Would a canonical tag be the way to go to 'remove' this duplicate content? And if so, which page should it point back to? Just picking one of the products? Or the higher level Landing page? Many thanks in advance... Isaac.
On-Page Optimization | | isaac6630 -
Custom site to Wordpress transfer
Hi all, Custom site to Wordpress transfer was done a week back. Exact same folder paths and URL's, Analytics/adsense/webmaster etc should be added right? Webmaster where can i get the new code and will all old history be gone from webmaster? Thanks
On-Page Optimization | | klambimut20 -
Best website IA/structure for SEO?
What's the current thinking on the best structure of information on a website for SEO? Structure for visitors can be best achieved through navigation menus, but I am more interested in how I should organise my URL structure so Google can make sense of the depth of my site topics. The website is an Asian travel blog so there are essentially two specific types of post on the site. One type is location specific (may be about an attraction, a city, a region or a country). The other type is general (usually about an aspect of travel like travel cash, visas, scams, etc). At the moment, all my general posts are organised like www.asiantraveltips.com/blog/[post-name]. My location-specific posts are organised like www.asiantraveltips.com/[country]/[region-or-city]/[place-name]/ so that Google can see I have depth of topics about each country and region. But I find it hard to keep consistency in this arrangement of URLs and I don't know if I might be better off to just have everything flat and tagged as a blog post like www.asiantraveltips.com/blog/[country]-[region-city]-[post-name]/? What's best practice these days? How are others organising travel blog websites?
On-Page Optimization | | Gavin.Atkinson0 -
Rel canonical tag on a single page site?
I have a wordpress theme site which essentially is all in 1 page. Do I need to use rel-canonical tag? It would just loop?
On-Page Optimization | | graftene0 -
WordPress and category/subcategory landing pages
Hey, Here's my situation. I'm building a WordPress blog for product reviews of a certain niche. Current category setup is 4 main categories with 4-8 subcategories each. Each subcategory has a unique description that will help it become a landing page for certain keywords, after which it lists the posts from that subcategory. The posts will always be assigned to a sub-category, never to a main category. My issue is what to do with the main categories. They're fairly general so they're not really targeting any keywords, and don't have any unique descriptions attached to them. I was thinking of choosing between three options on designing the main category pages: List the subcategories + normal posts loop that bring the latest posts from the subcategories (may create a lot of duplicate content since the subcategory pages are also listing their posts) List only the subcategories (+ maybe just the latest post from each subcategory) Don't link the main categories at all, instead only use them to create dropdowns for the subcategories So, what would you choose, and why?
On-Page Optimization | | mihaiaperghis0 -
Why does http://www.southernhearth.com rank so well for patio furniture and outdoor furniture?
I was looking at the competitiveness of ranking for the keywords "patio furniture" & "outdoor furniture" and was shocked to see www.southernhearth.com ranking so well. While I am just getting into the research, I was unable to see anything that would justify it's rank. What are your thoughts?
On-Page Optimization | | Mattbyo0 -
On site optimization - anchor text in body text
Hi I am learning SEO from scratch and am only a couple of weeks in. My wife has just started a website selling children clothes. In the left bar there are links to the different producers. Clicking it takes you to the products from that producer. In the body text om the main page ( epleskrinet.no) the same producers are mentioned. By time i need to opitmize for all of these. Is there any point in making them anchor text - taking them to the same URL as is given in the side bar ? Or will it get discounted ? Dan Laerum
On-Page Optimization | | danlae0 -
URL structure for a new WordPress site
Hi I'm building a new next big thing website from scratch (for a translation agency) and I encountered an issue with the URL structure. I need to chose the URL for important targeted keyword pages and I have a conflict between two tools I'm using. Please read below the situation: domain: mashtranslation.com target keyword: french translation services which URL you think is better from a SEO point of view (and possibly for users): mashtranslation.com/services/french/ OR mashtranslation.com/french-translation-services/ I'm asking this because one WordPress plugin (Wordpress SEO by Yoast) says the URL structure is not optimised while another tool (Market Samurai) says the URL is optimised.
On-Page Optimization | | flo20