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. Directory URL structure last / in the url

    Directory URL structure last / in the url

    Technical SEO Issues
    6 4 1.4k
    • 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.
    • DavidS-282061
      DavidS-282061 last edited by

      Ok,

      So my site's urls works like this   www.site.com/widgets/

      If you go to www.site.com/widgets  (without the last / )  you get a 404.

      My site did no used to require the last / to load the page but it has over the last year and my rankings have dropped on those pages...

      But Yahoo and BING still indexes all my pages without the last / and it some how still loads the page if you go to it from yahoo or bing, but it looks like this in the address bar once you arrive from bing or yahoo.

      http://www.site.com/404.asp?404;http://site.com:80/widgets/

      How do I fix this?

      Should'nt all the engines see those pages the same way with the last / included?

      What is the best structure for SEO?

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

        You should do a 301 redirect from the non "/" version at the end to the www.site.com/widget/ version.

        I've posted a "similar" questions a few days ago and someone posted the htaccess code that can work for you too.. you just need to change the domain names and urls there:

        http://www.seomoz.org/q/301-redirect-www-domain-com-index-to-www-domain-com

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

          Matt Cutts said in a video with Rand that you could use either way, but he recommends choosing one way and sticking with it. He said using a trailing forward slash was preferred and is the more technical way. So, I would use that way, since you seem to be using that anyway.

          What you need to do is setup server-side 301 redirects so if someone goes to www.mysite.com/blog it will automatically redirect them to mysite.com/blog/ --- using a 301 perm redirect will eventually clear out any bad indexed pages and willl get you going on the right track.

          DavidS-282061 1 Reply Last reply Reply Quote 0
          • DavidS-282061
            DavidS-282061 @DavidKauzlaric last edited by

            Thanks Guys,

            David - do you agree that I should use the code linked to in the post above?

            Do I understand right that I should use ONLY the /widgets/ pages?  and redirect the /widgets pages?

            SEE Your PM for an example.

            1 Reply Last reply Reply Quote 0
            • Getz.pro
              Getz.pro last edited by

              having a slash or not should not matter as far as accessing the page, nor really for SEO. Structurally you should keep to one (preferably the /) rather than switching. However, both links are broke, so I presume you have changed something.

              I see not reason for a redirect as you may fall into an infinite loop.

              DavidS-282061 1 Reply Last reply Reply Quote 0
              • DavidS-282061
                DavidS-282061 @Getz.pro last edited by

                Richard,

                Are you saying I should redirect to pages like this /name/

                vs

                /name

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • SEO advice on ecommerce url structure where categories contain "/c/"
                  Paddy_Moogan
                  Paddy_Moogan
                  0
                  2
                  496

                • Spammy structured data for http://www.heritageprinting.com/ might be dropped from search results
                  KevnJr
                  KevnJr
                  0
                  3
                  328

                • URL / sitemap structure for support pages
                  CleverPhD
                  CleverPhD
                  0
                  4
                  161

                • How could you make a URL/Breadcrumb structure appear different in Google than when you click into site?
                  ATP
                  ATP
                  0
                  4
                  994

                • What is the best practice to seperate different locations and languages in an URL? At the moment the URL is www.abc.com/ch/de. Is there a better way to structure the URL from an SEO perspective?
                  irvingw
                  irvingw
                  0
                  2
                  64

                • How to keep a URL social equity during a URL structure/name change?
                  OlegKorneitchouk
                  OlegKorneitchouk
                  0
                  4
                  464

                • /out/ URLs in GWMTs
                  AgentsofValue
                  AgentsofValue
                  0
                  2
                  2.3k

                • In order to improve my google rank, I recently changed my url from http://www.helpwithassignment.com/nursing-assignment-help to http://www.helpwithassignment.com/Assignment-Help/nursing-assignment-help
                  RichaS
                  RichaS
                  1
                  14
                  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