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. 301 redirect adding trailing slash to url

    301 redirect adding trailing slash to url

    Technical SEO Issues
    5 4 5.2k
    • 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.
    • TimHolmes
      TimHolmes last edited by

      I am looking into a .htacess file for a site I look after and have noticed that the urls are all 301 redirecting from a none slash directory to a trailing slashed directory/folders.

      e.g. www.domain.com/folder gets 301 redirected to www.domain.com/folder/

      Will this do much harm and reduce the effect on the page and any links pointing to the site be lessened?

      Secondly I am not sure what part of my htaccess is causing the redirect.

      RewriteCond %{HTTP_HOST} !^www.domain.co.uk [NC]

      RewriteCond %{HTTP_HOST} !^$
      RewriteRule ^(.*) http://www.domain.co.uk/$1 [L,R,NE]

      RewriteCond %{THE_REQUEST} ^./index.php
      RewriteRule ^(.
      )index.php$ /$1 [R=301,L]

      or could a wordpress ifmodule be causing the problem?

      Any info would be apreciated.

      1 Reply Last reply Reply Quote 0
      • rjonesx. 0
        rjonesx. 0 last edited by

        This is default behavior and you should keep it. It won't harm your rankings at all. I am not sure where the redirect is occurring in your install, but I wouldn't worry about it at all.

        Here is a write-up on it from Google.

        CleverPhD 1 Reply Last reply Reply Quote 1
        • CleverPhD
          CleverPhD @rjonesx. 0 last edited by

          Agreed.  Keep it.  My only other question would be - do you have any internal links on your site that link to the non-slashed version of the folder?  Get those fixed/cleaned up wherever possible.   Your Moz crawl report should find any of those for you.

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

            Hi Tim,

            I was literally working on this exact issue with a client yesterday. There is absolutely nothing about this to worry about. Although auditing programs like Screaming Frog will bring this up as an "issue", a manual look reveals nothing to be concerned about.

            The only issue you might have is, as CleverPhD pointed out, if you have any internal linking that might be sent to the "incorrect" url, that would be something to fix. Otherwise, this is totally fine.

            Best regards,

            Rob

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

              Cheers all for the responses, this was pretty much what I was hoping to hear....

              Thanks

              Tim

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Trailing Slashes on URLs
                GastonRiera
                GastonRiera
                0
                2
                146

              • 301 redirects - one overall redirect or an individual one for each page url
                Kurt_Steinbrueck
                Kurt_Steinbrueck
                1
                4
                160

              • Why are my URL's with a trailing slash still getting indexed even though they are redirected in the .htaccess file?
                irvingw
                irvingw
                0
                3
                288

              • OSE says URL redirects to URL with trailing slash but it doesn't.
                rock22
                rock22
                0
                5
                211

              • I have altered a url as it was too long. Do I need to do a 301 redirect for the old url?
                TomRayner
                TomRayner
                0
                4
                181

              • 301 Redirect Question for trailing slash & index.php
                anoopbal
                anoopbal
                0
                3
                973

              • 301 redirects and Dynamic URLs
                Barrycliff68
                Barrycliff68
                0
                3
                1.1k

              • Trailing slash 301 redirect code
                jamesjackson
                jamesjackson
                0
                10
                5.4k

              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