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 help, whats the best way

    301 help, whats the best way

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

      Hi all

      right now i have 301 redirects setup in my htaccess file

      i recently redesigned our site so i have been redirecting all the old urls to the new ones.

      I saw a post about having all your urls the same format, so i updated my htaccess file to redirect all urls from http://www.mysite.com/food to http://www.mysite.com/food/ (added a forward slash).

      Now on my latest seo crawl i see all my site urls, redirecting to the forward slash url.

      am i doing this right,

      thanks

      will

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

        Hi Will,

        Looks like you've got it right.

        Without the 301 redirect you'd have two versions of the same page (one with the trailing slash, and one without), so 301 redirecting all the URLs to the version with the trailing slash is definitely the best way to go.

        If your crawl report shows the redirects are active you should be good to go.

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

          Sounds like you're doing it right!

          You want your URLs to end in a trailing slash, and for the URLs that don't, you want a training slash added. If that's what's showing up in your reports and in your spot checks, you're doing great!

          You may want to write a code that does this automatically -- e.g. that adds a trailing slash to any URL that doesn't have one, if that url doesn't inclue a filetype (to exclude bad things like /image.png becoming /image.png/)

          Note: If you're on Wordpress, you might try a plugin like http://wordpress.org/extend/plugins/smart-404/ to catch any bad urls that might rear their heads later -- it or something like it (if you're not on WordPress) would also likely take care of the redirection issue you're having altogether.

          1 Reply Last reply Reply Quote 1
          • 1 / 1
          • First post
            Last post
          • Best & easiest way to 301 redirect on IIS
            2MSens
            2MSens
            0
            13
            2.2k

          • What is the best way to change tons of 302 for 301...
            Felip3
            Felip3
            0
            7
            155

          • Best way to deal with these urls?
            Trespass
            Trespass
            0
            3
            65

          • 301 Redirect Help
            dhidalgo1
            dhidalgo1
            1
            3
            115

          • I'm redesigning a website which will have a new URL format. What's the best way to redirect all the old URLs to the new ones? Is there an automated, fast way to do this?
            GregFindley.co.uk
            GregFindley.co.uk
            0
            2
            303

          • I can buy a domain from a competitor. Whats the best way to make good use of these links for my existing website
            TheEspresseo
            TheEspresseo
            0
            3
            355

          • Whats the best way to stop search results from being indexed?
            Sebes
            Sebes
            0
            4
            1.0k

          • Switching ecommerce CMS's - Best Way to write URL 301's and sub pages?
            tylerfraser
            tylerfraser
            0
            7
            1.2k

          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