• seohunters9

        See all notifications

        Skip to content
        Moz logo Menu open Menu close
        • Products
          • Moz Pro
          • Moz Pro Home
          • Moz Local
          • Moz Local Home
          • STAT
          • Moz API
          • Moz API Home
          • Compare SEO Products
          • Moz Data
        • Free SEO Tools
          • Domain Analysis
          • Keyword Explorer
          • Link Explorer
          • Competitive Research
          • MozBar
          • More Free SEO Tools
        • Learn SEO
          • Beginner's Guide to SEO
          • SEO Learning Center
          • Moz Academy
          • MozCon
          • Webinars, Whitepapers, & Guides
        • Blog
        • Why Moz
          • Digital Marketers
          • Agency Solutions
          • Enterprise Solutions
          • Small Business Solutions
          • The Moz Story
          • New Releases
        • Log in
        • Log out
        • Products
          • Moz Pro

            Your all-in-one suite of SEO essentials.

          • Moz Local

            Raise your local SEO visibility with complete local SEO management.

          • STAT

            SERP tracking and analytics for enterprise SEO experts.

          • Moz API

            Power your SEO with our index of over 44 trillion links.

          • Compare SEO Products

            See which Moz SEO solution best meets your business needs.

          • Moz Data

            Power your SEO strategy & AI models with custom data solutions.

          Let your business shine with Listings AI
          Moz Local

          Let your business shine with Listings AI

          Learn more
        • Free SEO Tools
          • Domain Analysis

            Get top competitive SEO metrics like DA, top pages and more.

          • Keyword Explorer

            Find traffic-driving keywords with our 1.25 billion+ keyword index.

          • Link Explorer

            Explore over 40 trillion links for powerful backlink data.

          • Competitive Research

            Uncover valuable insights on your organic search competitors.

          • MozBar

            See top SEO metrics for free as you browse the web.

          • More Free SEO Tools

            Explore all the free SEO tools Moz has to offer.

          NEW Keyword Suggestions by Topic
          Moz Pro

          NEW Keyword Suggestions by Topic

          Learn more
        • Learn SEO
          • Beginner's Guide to SEO

            The #1 most popular introduction to SEO, trusted by millions.

          • SEO Learning Center

            Broaden your knowledge with SEO resources for all skill levels.

          • On-Demand Webinars

            Learn modern SEO best practices from industry experts.

          • How-To Guides

            Step-by-step guides to search success from the authority on SEO.

          • Moz Academy

            Upskill and get certified with on-demand courses & certifications.

          • MozCon

            Save on Early Bird tickets and join us in London or New York City

          Unlock flexible pricing & new endpoints
          Moz API

          Unlock flexible pricing & new endpoints

          Find your plan
        • Blog
        • Why Moz
          • Digital Marketers

            Simplify SEO tasks to save time and grow your traffic.

          • Small Business Solutions

            Uncover insights to make smarter marketing decisions in less time.

          • Agency Solutions

            Earn & keep valuable clients with unparalleled data & insights.

          • Enterprise Solutions

            Gain a competitive edge in the ever-changing world of search.

          • The Moz Story

            Moz was the first & remains the most trusted SEO company.

          • New Releases

            Get the scoop on the latest and greatest from Moz.

          Surface actionable competitive intel
          New Feature

          Surface actionable competitive intel

          Learn More
        • Log in
          • Moz Pro
          • Moz Local
          • Moz Local Dashboard
          • Moz API
          • Moz API Dashboard
          • Moz Academy
        • Avatar
          • Moz Home
          • Notifications
          • Account & Billing
          • Manage Users
          • Community Profile
          • My Q&A
          • My Videos
          • Log Out

        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. Home
        2. Moz Tools
        3. Moz Pro
        4. Canonical URLs all show trailing slash on main site pages - using Yoast SEO for Wordpress - how to correct

        Moz Q&A is closed.

        After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

        Canonical URLs all show trailing slash on main site pages - using Yoast SEO for Wordpress - how to correct

        Moz Pro
        7
        12
        10239
        Loading More Posts
        • Watching

          Notify me of new replies.
          Show question in unread.

        • Not Watching

          Do not notify me of new replies.
          Show question in unread if category is not ignored.

        • Ignoring

          Do not notify me of new replies.
          Do not show question in unread.

        • Oldest to Newest
        • Newest to Oldest
        • Most Votes
        Reply
        • Reply as question
        Locked
        This topic has been deleted. Only users with question management privileges can see it.
        • Adam_RushHour_Marketing
          Adam_RushHour_Marketing last edited by

          We are using Yoast for a number of our sites.  We use naked domain as the canonical. I have noticed in the header tags that all our sites show the canonical URLs as having a trailing slash:

          Example:   http;//foxspizzajc.com, when I look at the source code, it shows the canonical as http;//foxspizzajc.com/

          Of course, it is much more likely that all sites that link to us will not use the trailing slash - so preferably we do not want that to be the canonical - among other reasons.

          Does this need to be fixed so the trailing slash is removed? I cannot see how to do this in Yoast SEO or in Permalinks structure for Wordpress.

          Sorry for my ignorance.

          Thanks for any help.

          1 Reply Last reply Reply Quote 1
          • JohnMorabito
            JohnMorabito Subscriber last edited by

            As far as I understand this, to your browser and to Google, they're the same page (this really seems to only apply to the homepage, other pages "/" really matters a lot).

            I would not worry about changing the canonical, in fact it's technically the 'right" location of the page. When it comes to the HTTP docs, a request to the root needs "/". All modern web browsers add it back in for you even if it's not there. This is I believe why the canonical is set as it is there in yoast.

            I covered this in a blog as someone asked this at Pubcon this year in a keynote.

            http://www.winstondigitalmarketing.com/yoast-homepage-canonical-correct-include-trailing-slash/

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

              I searched high and low for how to pull this off for the Yoast plugin specifically for my homepage.  And wa-la, here was the answer in the community forum.  Thanks guys!  The advanced area in the yoast plugin for the homepage did the track.   Just the homepage is set now to mywebsite.com  instead of mewebsite.com/    Too me this is cleaner for SEO and local search SEO since all citations and inbound links are pointing to mywebsite.com  NOT  mywebsite.com/   Maybe Google will shine a bit more SERP love on me.   🙂  We shall see - better make an annotation not in Google analytics so I can reference if positive impact occurred.

              1 Reply Last reply Reply Quote 0
              • Adam_RushHour_Marketing
                Adam_RushHour_Marketing @davebuts last edited by

                I wrote to Yoast about this issue but they wouldn't respond because I am using the free plugin. I may respond and let them know about this discussion. Seems like a valid legitimate question, no?  I would love an official response...

                1 Reply Last reply Reply Quote 0
                • davebuts
                  davebuts @gfiorelli1 last edited by

                  Hi Gianluca,

                  He was talking about a WordPress website which, by default, already has a 301 redirect in place on the homepage URL with the slash to the URL without the slash.

                  What's strange is that the Yoast SEO plugin points the homepage canonical tag to the URL with the slash - which is 301 redirected to the URL without!

                  I know search engines handle this very well and probably just ignore the canonical tag, but if you want it to be 100% correct (and why wouldn't you?) adding a the canonical tag in the Advanced tab is a very easy fix.

                  Adam_RushHour_Marketing 1 Reply Last reply Reply Quote 1
                  • Adam_RushHour_Marketing
                    Adam_RushHour_Marketing @gfiorelli1 last edited by

                    Gianluca - so you believe their is no reason to actually go in and fix this?

                    1 Reply Last reply Reply Quote 0
                    • Adam_RushHour_Marketing
                      Adam_RushHour_Marketing @davebuts last edited by

                      Hey Dave - great suggestion. I did that and it worked.

                      http://note.io/1zJ8cTZ

                      Doesn't it seem strange to you that Yoast, the master of SEO - automatically does this?
                      Kind of makes me think that Google doesn't see the trailing slash as a different URL for the homepage.  Wouldn't their team catch this or address it?

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

                        Why nobody is answering that the most normal thing to do should be redirecting via .htaccess the URL with the ending trailing hash to the one without (or viceversa)?

                        I mean, that's what I would do if it was just the case of the home page.

                        Said that, I would not worry that much, because that is one of those exact duplication cases that Google understands and solves with no problem.

                        Adam_RushHour_Marketing davebuts 2 Replies Last reply Reply Quote 2
                        • Martijn_Scheijbeler
                          Martijn_Scheijbeler @Adam_RushHour_Marketing last edited by

                          What you could do is set up a filter in your functions.php file to change the URL based on the homepage but that's a bit too much maybe ;-). Next to that I think it's due to the fact that some web servers set up the trailing slash by default.

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

                            I find it strange that this happens with Yoast as it points the canonical tag for the homepage to a 301 redirect URL. I don't think it's a big problem as search engines seem to handle it well, but it's a problem that I wouldn't expect to see in such a popular and reputable SEO plugin.

                            If you use the plugin editor to remove the trailing slash you will remove the trailing slash from all pages of your site (something you may not want to do).

                            If you only want to remove the trailing slash from the homepage the easiest option would be to manually add the canonical URL without the trailing slash in the Advanced tab for Yoast when editing the homepage (as Linda said above). Doing this for one page will take you 2 seconds and fix the problem!

                            Adam_RushHour_Marketing 1 Reply Last reply Reply Quote 4
                            • Adam_RushHour_Marketing
                              Adam_RushHour_Marketing @Linda-Vassily last edited by

                              Hey Linda - I appreciate that - however when I read that article - its still seemed to open to debate if this is necessary to fix or not. Are you aware of a way to have it autofixed in wordpress? The only solution I read there was either hacking Yoast SEO to remove the trailing slash - or to manually edit every single page.

                              Am I over thinking this? I agreed with one poster who mentioned that Moz appears to have wanted this issue correct because their homepage shows that a-moz.groupbuyseo.org does not have the trailing slash in the canonical tag - nor does yoast.com.

                              Odd to me then that the Yoast plugin would then add this.

                              Are you aware of a way to remove it that is more effective?

                              Martijn_Scheijbeler 1 Reply Last reply Reply Quote 0
                              • Linda-Vassily
                                Linda-Vassily last edited by

                                A similar question has been asked here before: http://a-moz.groupbuyseo.org/community/q/how-do-i-get-rel-canonical-to-eliminate-the-trailing-slash-on-my-home-page .

                                "Login to your WordPress backend as an administrator and look for "Plugins" on the left menu and go to "Editor" within the plugins menu."

                                You can also edit the canonicals of individual pages and posts under the "Advanced" tab on the individual page or post editing page.

                                Adam_RushHour_Marketing 1 Reply Last reply Reply Quote 0
                                • 1 / 1
                                • First post
                                  Last post

                                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.

                                • See all categories

                                Related Questions

                                • alwaysbeseen

                                  Unsolved Using Weglot on wordpress (errors)

                                  wordpress weglot

                                  Good day to you all, Does anyone have experience of the errors being pulled up by Moz about the utility of the weglot plugin on Wordpress? Moz is pulling up URLs such as: https://www.ibizacc.com/es/chapparal-2/?wg-choose-original=false These are classified under "redirect issues" and 99% of the pages are with the ?wg-choose parameter in the URL. Is this having an actual negative impact on my search or is it something more Moz related being highlighted. Any advice be appreciated and a resolution .. Im thinking I could exclude this parameter.

                                  Moz Pro | | alwaysbeseen
                                  0
                                • ayrutd

                                  Difference between urls and referring urls?

                                  Sorry, nit new to this side of SEO We recently discovered we have over 200 critical crawler issues on our site (mainly 4xx) We exported the CSV and it shows both a URL link and a referring URL. Both lead to a 'page not found' so I have two questions? What is the difference between a URL and a referring URL? What is the best practice/how do we fix this issue? Is it one for our web developer? Appreciate the help.

                                  Moz Pro | | ayrutd
                                  1
                                • ChrissyOck

                                  How to deal with auto generated pages on our site that are considered thin content

                                  Hi there, Wondering how to deal w/ about 300+ pages on our site that are autogenerated & considered thin content. Here is an example of those pages: https://app.cobalt.io/ninp0 The pages are auto generated when a new security researcher joins our team & then filled by each researcher with specifics about their personal experience. Additionally, there is a fair amount of dynamic content on these pages that updates with certain activities. These pages are also getting marked as not having a canonical tag on them, however, they are technically different pages just w/ very similar elements. I'm not sure I would want to put a canonical tag on them as some of them have a decent page authority & I think could be contributing to our overall SEO health. Any ideas on how I should deal w/ this group of similar but not identical pages?

                                  Moz Pro | | ChrissyOck
                                  0
                                • dawgroup

                                  Yoast Wordpress

                                  My website is in wordpress and i was using Premium SEO Pack and for what i read is not so good as ai thought it will be, so i will like to know from someone who have use a plugin or Yoast plugin what is the best options for me to make my website ranking better

                                  Moz Pro | | dawgroup
                                  1
                                • DeanAndrews

                                  SEO Yoast data export

                                  Just thought I would give something back. (Is this the right place!) I use Wordpress with the excellent SEO Yoast plugin. I needed a way of extracting the focus keywords that I have entered onto my pages along with the url for use on the SEOmoz On-page Optimisation tool. So I created GetYoastData which outputs to the browser the required data (and a bit more) that can be saved into an csv (Excel) file. Hope you find it useful - Yes it's not polished and yes it might output a blank line now and again but it's fairly useful. http://deanandrews.uk/get-yoast-seo-data/

                                  Moz Pro | | DeanAndrews
                                  0
                                • anthonytjm

                                  What do you use for site audit

                                  What tools do you use for conducting a site audit? I need to do an audit on a site and the seomoz web crawler and on page optimization will takes days if not a full week to return any results. In past Ive used other tools that I could run on the fly and they would return broken links, missing htags, keyword density, server information and more. Curious as to what you all use and what you may recommend to use in conjunction with the moz tools.

                                  Moz Pro | | anthonytjm
                                  0
                                • BlueprintMarketing

                                  I am looking for SEO tips specifically for magazine site's

                                  I have a client who has a website that is based on a magazine. They make their money through advertisement I am primarily an inbound marketer I would be very grateful if anyone out there has any tips for a site that has been around for quite a while ( over 10 years) we are transforming the site from HTML into WordPress then hosting it with a fast managed WordPress host using CDN. I feel the lack of links is an obvious place to start however if there's anything specific to magazine based websites I would be more than grateful to hear your opinions. Thank you all in advance. Sincerely, Thomas von Zickell

                                  Moz Pro | | BlueprintMarketing
                                  0
                                • Danni

                                  SEO PowerSuite - best kept SEO secret or just bullsh..?!?

                                  I've come across a lot of SEO tools in the last 5-6 years. And there are many great tools out there! I don't believe in the one-tool-fits-all. Among the tools I make use of are Raven Tools and Searchmetrics (great audit and market analysis tool!), and the tools in here, of course. In my search for a better ranking report tool I came across Rank Tracker from SEO PowerSuite. That seems like a great tool in category with AWR; but I am not able tell so as I am not a power user. Well, here is where I am going: I then tested the rest of the PowerSuite and it seems as a great product. But searching for the tools in here, and nothing shows up. Silence. Also elsewhere in other serious places. Why is that? It is a collective secret, shhhh, don't tell 🙂. Or is it is just crap? I know they have a bad reputation in regard to prices and updates. What do you guys think?

                                  Moz Pro | | Danni
                                  0

                                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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                                • Accessibility
                                • Terms of Use
                                • Privacy

                                Looks like your connection to Moz was lost, please wait while we try to reconnect.