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. Rel="canonical" of .html/ to .html

    Rel="canonical" of .html/ to .html

    Technical SEO Issues
    3 3 154
    • 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.
    • petrakraft
      petrakraft last edited by

      Hi,

      could you guys confirm me that the following scenario is completely senseless?

      I just got the instruction from an external consultant (with quiet good SEO knowledge) to use a rel="canonical" for the following urls.

      http://www.example.com/petra.html/
      to
      http://www.example.com/petra.html

      I mean a folder petra/ to petra is ok - but a trailing slash after .html ???

      Apart from that I would rather choose a 301 - not a rel canonical.

      What is your position here?

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

        Hi Petra

        That seems a bit weird to say the least.

        I'm guessing that the consultant recommends the canonical tag to avoid a duplicate content issue with the two URLs?

        Well, simply putting the canonical tag on petra.html should fix that, as it will tell Google not to index any other variant of this URL (be it with ? queries or / slashes).

        Similarly, if you have links going to the petra.html/ page for whatever reason, I'd pop in a 301 redirect like you said.

        Now, if they were two separate, but identical, pages that are designed to both exist for the user, the consultant would have a point. I would point a canonical on petra.html/ to petra.html, but I would actually put "noindex" and "nofollow" meta tags in the header of one of the pages first and foremost, as I believe this is more of a definitive signal.

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

          they probably made a mistake. .html is the filename, not a folder and therefor no trailing slash. I would ask them to clarify.

          As a matter of fact I would even strip off the .html extension.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Duplicate pages with "/" and without "/"
            Nigel_Carr
            Nigel_Carr
            0
            3
            127

          • Using http: shorthand inside canonical tag ("//" instead of "http:") can cause harm?
            Mobilio
            Mobilio
            0
            5
            425

          • Rel="canonical" What if there is no header??
            momof4
            momof4
            0
            6
            123

          • Rel="canonical" in hyperlink
            Dr-Pete
            Dr-Pete
            0
            6
            140

          • Rel="canonical"
            AndieF
            AndieF
            0
            2
            73

          • Implementation of rel="next" & rel="prev"
            KeriMorgret
            KeriMorgret
            0
            8
            1.4k

          • Campaign Issue: Rel Canonical - Does this mean it should be "on" or "off?"
            mrbradleyferguson
            mrbradleyferguson
            0
            4
            230

          • Rel="canonical" for PFDs?
            RyanKent
            RyanKent
            0
            4
            729

          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