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. Technical SEO Issues
    4. Drupal, http/https, canonicals and Google Search Console

    Drupal, http/https, canonicals and Google Search Console

    Technical SEO Issues
    6 2 202
    • 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.
    • joberts
      joberts last edited by

      I’m fairly new in an in-house role and am currently rooting around our Drupal website to improve it as a whole. Right now on my radar is our use of http / https, canonicals, and our use of Google Search Console. Initial issues noticed:

      • We serve http and https versions of all our pages
      • Our canonical tags just refer back to the URL it sits on (apparently a default Drupal thing, which is not much use)
      • We don’t actually have https properties added in Search Console/GA

      I’ve spoken with our IT agency who migrated our old site to the current site, who have recommended forcing all pages to https and setting canonicals to all https pages, which is fine in theory, but I don’t think it’s as simple as this, right? An old Moz post I found talked about running into issues with images/CSS/javascript referencing http – is there anything else to consider, especially from an SEO perspective?

      I’m assuming that the appropriate certificates are in place, as the secure version of the site works perfectly well.

      And on the last point – am I safe to assume we have just never tracked any traffic for the secure version of the site? 😞

      Thanks

      John

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

        Hi John,

        For the most part, your IT partner is correct, 2 of the most important things are to 301 all HTTP requests to HTTPS and to update canonicals. I often refer to people with questions about HTTPS to this post written by Cyrus Shepard, he covers all the bases needed for an SEO-friendly secure migration: https://moz.com/blog/seo-tips-https-ssl.

        Regarding your specific comments:

        • We serve http and https versions of all our pages - A 301 redirect rule will correct this
        • Our canonical tags just refer back to the URL it sits on (apparently a default Drupal thing, which is not much use) - Self-referring canonicals like this serve plenty of purpose, they just need to match your preferred version www/non-www http/https, etc. etc. Self-referring canonicals help prevent duplicates caused by parameters, case-sensitive URLs, and the aformentioned HTTP/S and www/non-www.
        • We don’t actually have https properties added in Search Console/GA - You should add another profile for HTTPS, verification should be simple since you've already proven you're the site owner. You want to have both profiles in GSC so you can monitor the shift of indexed URLs from HTTP to HTTPS. Also good for future troubleshooting should you see and issue with indexing of HTTP in the future for some reason.
        joberts 1 Reply Last reply Reply Quote 1
        • joberts
          joberts @LoganRay last edited by

          Hi Logan,

          Thanks for your quick response, that’s very helpful and the article you provided is great.

          I hadn’t thought of the purpose of self-referring canonicals, thanks for clarifying.

          Re: Search Console: I’ve just noticed we only have a sitemap linked for the http://www property. Currently, all www. traffic is redirected to the non-www version of any given page (forgetting https for a second). Is this an issue in terms of pagerank?

          And my last question, I promise! If our UA tag is firing on both http and https versions of the site, should we be seeing traffic from both in GA, if the property/view default url is set to http:// ? By my understanding, that setting is just a vanity thing for reporting purposes, but I’m not sure where, if anywhere, I need to specify in a particular view that http:// and https:// traffic should be treated as the same thing?

          LoganRay 1 Reply Last reply Reply Quote 1
          • LoganRay
            LoganRay @joberts last edited by

            Hi John, always glad to help!

            For your Search Console question: When you get the redirects setup and have committed to your site being all HTTPS, you'll want to move the location of your XML sitemap to https://yoursite.com/sitemap.xml. As Cyrus mentions in that article, don't update the URLs in the sitemap yet, let search engines hit them as non-secure for a while, I think he recommends 30 days, to give them a chance to learn your new protocol and for them to hit your redirects multiple times.

            For your www question: There's no difference in SEO-value whether you choose www or non-www, simply a preference. The only thing that matters here is that you pick one and stick with it.

            For your GA question: That is correct, you are seeing traffic from both in GA. GA will collect and report on any page/URL/website that your UA-ID is on. If someone scraped your site and took the GA script with it, you'd start seeing their traffic in your reporting view (that's why appending hostname is always a good idea 🙂 ). You can specify in the View Settings of GA what your protocol is.

            1 Reply Last reply Reply Quote 1
            • joberts
              joberts last edited by

              Thanks so much, this is so helpful!

              About the search console question, I may have confused you. This is what I mean: I have a www and non-www property of the website in Search Console (from before my time), which looks like this:

              |

              property

              |

              Sitemap

              http://www.mysite.com/

              |

              http://www.mysite.com/sitemap.xml

              http://mysite.com

              |

              NO SITEMAP LINKED

              |

              (apologies that has not formatted well, I hope you can decipher!)

              With a sitemap linked to the www version and nothing to the non-www version. The sitemap is located on the non-www version of the site, so I was just wondering if the above scenario has essentially meant we've had no sitemap submissions to date (that said, the sitemap appears to be pulling through despite being the "wrong" address, so I can only think there are either 2 separate sitemap files, OR the redirect we have set from www to non-www is having an effect?)

              LoganRay 1 Reply Last reply Reply Quote 0
              • LoganRay
                LoganRay @joberts last edited by

                OK I gotcha now. You can submit the sitemap in all versions of Search Console, won't hurt anything to have it referenced in multiple profiles of SC.

                Another thing you can do to make sure crawlers find your XML is add this line to your robots.txt file:

                Sitemap: http://yoursitecom/sitemap.xml

                1 Reply Last reply Reply Quote 1
                • 1 / 1
                • First post
                  Last post
                • How to resolve warning of pages with redirect chain when its your http:// to https://www.
                  VelocityWebsites
                  VelocityWebsites
                  0
                  3
                  186

                • Google Search Console and User-declared canonical is actually Hreflang tag
                  katemorris
                  katemorris
                  0
                  2
                  1.3k

                • Http:// vs Https:// in Og:URL
                  ThompsonPaul
                  ThompsonPaul
                  0
                  6
                  637

                • From: http://www. to https://
                  Tymen
                  Tymen
                  1
                  4
                  121

                • Http:// to https:// 301 or 302 redirect
                  Kingof5
                  Kingof5
                  1
                  7
                  284

                • WordPress - How to stop both http:// and https:// pages being indexed?
                  Dr-Pete
                  Dr-Pete
                  0
                  4
                  1.9k

                • Disallow: /search/ in robots but soft 404s are still showing in GWT and Google search?
                  timhatton
                  timhatton
                  0
                  7
                  374

                • Follow up from http://www.seomoz.org/qa/discuss/52837/google-analytics
                  KeriMorgret
                  KeriMorgret
                  0
                  8
                  1.1k

                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