The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. On-Page / Site Optimization
    4. How do you treat http/https and slashes at the end of a site?

    How do you treat http/https and slashes at the end of a site?

    On-Page / Site Optimization
    2 2 118
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • tiffany1103
      tiffany1103 last edited by

      • 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?

      1 Reply Last reply Reply Quote 0
      • JaneCopland
        JaneCopland last edited by

        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

        1 Reply Last reply Reply Quote 1
        • 1 / 1
        • First post
          Last post
        • How to replace the keywords of our Google Site https://www.opcfitness.com/ 's TITLE
          0
          1
          18

        • My site auto redirects http to https. This is causing redirect chains. What can I do?
          WebQuest
          WebQuest
          0
          2
          130

        • Site has 302 redirects for HTTP to HTTPS when it should be 301
          Dalerio-Consulting
          Dalerio-Consulting
          1
          2
          55

        • What is the best way to block http://www.site.com/members/...
          Taiger
          Taiger
          0
          3
          136

        • https://www.freedomltd.com/stag-weekend/
          henandstag
          henandstag
          0
          3
          109

        • Any idea how Google is doing this? Is it schematic? http://techcrunch.com/2014/02/28/google-adds-full-restaurant-menus-to-its-search-results-pages/
          Ron_McCabe
          Ron_McCabe
          0
          4
          118

        • Do https sites rank as well as http sites?
          JustinClark
          JustinClark
          0
          4
          145

        • Redirecting web site URL to http://torontoairportlimoflatrate.com/ to http://www.torontoairportlimoflatrate.com
          My-Favourite-Holiday-Cottages
          My-Favourite-Holiday-Cottages
          0
          2
          419

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy