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. Intermediate & Advanced SEO
    4. A Client Changed the Link Structure for Their Site... Not Just Once, but Twice

    A Client Changed the Link Structure for Their Site... Not Just Once, but Twice

    Intermediate & Advanced SEO
    9 6 732
    • 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.
    • digisavvy
      digisavvy last edited by

      I have a client who's experiencing a number of crawl errors, which I've gotten down fo 9,000 from 18,000. One of the challenges they experience is that they've modified their URL structure a couple times.

      First it was: site.com/year/month/day/post-name
      Then it was: site.com/category/post-name
      Now it's: site.com/post-name

      I'm not sure of the time elapsed between these changes, but enough time has passed that the URLs for the previous two URL structures have been indexed and spit out 404s now.

      What's the best/clean way to address this issue?I'm not going to create 9k redirect rules obviously, but there's got to be a way to address this issue and resolve it moving forward.

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

        Have you tried creating a redirect rule for each of the folders? From you example above the "post-name" has remained consistent. Therefore if you create a redirect from each folder then you should see a proper resolution with just appending the "post-name"

        1 Reply Last reply Reply Quote 5
        • AdoptionHelp
          AdoptionHelp last edited by

          You could do this with one or two clever regex commands, the composition of which I can't think of cos its too close to quitting time on Friday. But yeah you don't need 9000 rules.

          1 Reply Last reply Reply Quote 3
          • GYMSN
            GYMSN last edited by

            Thomas did what we did and it worked fine.  We lost a ton of Yahoo rankings for significant keywords though.  I now personally never change /url/keywords unless I don't care about the Yahoo traffic (or there is none).  Google has no problem with it.

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

              Ryan is absolutely spot on.. you can create some redirection rules in the .htaccess (assuming the site's on apache)

              something along the lines of..

              RewriteRule ^([0-9]{4})/([0-9]{2})/([0-9]{2})/(.*)$ /$4 [R=301,NC,L]

              RewriteRule ^category/(.*)$ /$1 [R=301,NC,L]

              (of course if totally depends on your site structure & I'd test these on a staging server if possible)

              1 Reply Last reply Reply Quote 2
              • digisavvy
                digisavvy last edited by

                Wow guys! Thanks for the responses. You've given me a couple things to think about.

                The suggestions from Thomas and GYMSN might be the way I choose to plod ahead. Though, the rewrite rule seems like an interesting play. I have no idea what either of those lines mean. Heh. Is there a reference you could recommend, Woj, that might shed more light on rewrite rules?

                A couple technical pieces to throw out there:

                1. It's a WordPress site, so they don't have "folders," per se.

                2. They run on linux, with an apache web server

                wojkwasi KeriMorgret 2 Replies Last reply Reply Quote 0
                • wojkwasi
                  wojkwasi @digisavvy last edited by

                  Sure, here's the mod_rewrite guide straight from the horse's mouth 😉
                  http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

                  Here's a nice beginner's guide:
                  http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

                  ...with a little cheatsheet for some of the common commands:
                  http://www.cheatography.com/davechild/cheat-sheets/mod-rewrite/

                  1 Reply Last reply Reply Quote 1
                  • KeriMorgret
                    KeriMorgret @digisavvy last edited by

                    Look for the "Redirection" plugin for Wordpress, that can help you make redirects easily. It's also an easy way to let you see what's a 404 on your site, and make redirects from the page listing the 404s.

                    wojkwasi 1 Reply Last reply Reply Quote 0
                    • wojkwasi
                      wojkwasi @KeriMorgret last edited by

                      That looks like a very useful plugin Keri 🙂

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Weird Site is linking to our site and links appears to be broken
                        0
                        2
                        40

                      • Can I change a URL on a site that has only a few back links?
                        MissThumann
                        MissThumann
                        0
                        5
                        45

                      • Spammy sites that link to a site
                        Ray-pp
                        Ray-pp
                        0
                        2
                        58

                      • Link Juice + Site Structure
                        SEO5Team
                        SEO5Team
                        0
                        2
                        186

                      • Link juice site structure?
                        AlanMosley
                        AlanMosley
                        0
                        4
                        186

                      • Moving from a static HTML CSS site with .html files to a Wordpress Site while keeping link structure
                        TomRayner
                        TomRayner
                        0
                        4
                        1.3k

                      • Changing a URL structure within a site
                        SEODinosaur
                        SEODinosaur
                        0
                        4
                        625

                      • Most efficient way to change site structure?
                        RyanKent
                        RyanKent
                        0
                        3
                        680

                      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