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. Redirect old URL's from referring sites?

    Redirect old URL's from referring sites?

    Technical SEO Issues
    9 2 280
    • 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.
    • ocelot
      ocelot last edited by

      Hi

      I have just came across some URL's from the previous web designer and the site structure has now changed.

      There are some links on the web however that are still pointing at the old deep weblinks.

      Without having to contact each site it there a way to automatically sort the links from the old structure

      www.mydomain.com/show/english/index.aspx

      to just

      www.mydomain.com

      Many Thanks

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

        Ocelot,

        I would use Screaming Frog to spider the site. If you don't have, you should be able to download a free version from the web to whatever browser, etc. you use. When you open it, you will see where to put the domain and below that a row of buttons - use response codes to find what 404's you have. then click on them and use the links button at the bottom to see the links to those pages.

        There is no blanket way to redirect the bad links if that is what you are asking. You can look at them in WMT and for the ones that have authority/get traffic, etc. you can redirect those to relevant pages and the others you need to have a good 404 page up that keeps them on the site.

        Hope that helps,

        ocelot 1 Reply Last reply Reply Quote 0
        • ocelot
          ocelot @RobertFisher last edited by

          Thanks again Robert!

          How would you direct the old links to the relevant pages, as in my example of

          www.mydomain.com/show/english/index. aspx

          to just

          www.mydomain.com

          Do you have any working examples that I could modify to suit my scenario above?  Would this be done in a .htaccess file or in WMT?  or could I just recreate the directory structure and file with a 301 to the new page?

          RobertFisher ocelot 6 Replies Last reply Reply Quote 0
          • RobertFisher
            RobertFisher @ocelot last edited by

            For yours, when you know the bad url is www.example.com/how-happened/dont-know

            And you have a how-happened page on current site. In the .htaccess file put your 301 from bad link to current url  and you will move any links as well.

            1 Reply Last reply Reply Quote 0
            • ocelot
              ocelot @ocelot last edited by

              Thanks Robert

              But what is the correct code needed for the 301 in the .htaccess file as I am not getting this right at the moment!  Been trying for the past few hours!

              1 Reply Last reply Reply Quote 0
              • RobertFisher
                RobertFisher @ocelot last edited by

                Sorry Ocelot, was tied up.

                Here is a link to a moz resource from WebConfs.com

                On moz here is another good resource page re redirects (where I pulled that link above from).

                On WebConfs.com in the left sidebar is a redirect checker, once done put in your url and see how you did.

                LMK if you get stuck.

                1 Reply Last reply Reply Quote 0
                • ocelot
                  ocelot @ocelot last edited by

                  Hi Robert

                  I am trying the following in a .htaccess file but the old URL is not redirecting to the root url?

                  RewriteEngine on

                  RedirectMatch 301 http://mydomain.co.uk/show/english/home.aspx http://www.mydomain.co.uk

                  RedirectMatch 301 http://www.mydomain.co.uk/show/english/home.aspx http://www.mydomain.co.uk

                  1 Reply Last reply Reply Quote 0
                  • RobertFisher
                    RobertFisher @ocelot last edited by

                    Does the apache have the mod rewrite installed?

                    1 Reply Last reply Reply Quote 0
                    • ocelot
                      ocelot @ocelot last edited by

                      Hi Yes I think so, but is there a way to check/run a test?

                      UPDATE - Yes it is enabled its on Dreamhost

                      1 Reply Last reply Reply Quote 0
                      • 1 / 1
                      • First post
                        Last post
                      • Google how deal with licensed content when this placed on vendor & client's website too. Will Google penalize the client's site for this ?
                        katemorris
                        katemorris
                        1
                        4
                        94

                      • Site's IP showing WMT 'Links to My Site'
                        evansluke
                        evansluke
                        0
                        4
                        117

                      • Test site got indexed in Google - What's the best way of getting the pages removed from the SERP's?
                        Yarden_Uitvaartorganisatie
                        Yarden_Uitvaartorganisatie
                        0
                        5
                        1.3k

                      • We have designed a new site and are in dilemna whether or not to change the site's URL structure or maybe few odd looking urls. How exactly do we go about the URL thing in toto? thanks in advance, any suggestion(s) would be dearly welcome
                        ShaunPhilips
                        ShaunPhilips
                        1
                        7
                        109

                      • New Site maintaining rank on old URL's
                        ocelot
                        ocelot
                        0
                        3
                        148

                      • New Website, New URL, New Content - What do we do with the old site? Are 301's the only option?
                        Valarlf
                        Valarlf
                        0
                        3
                        342

                      • ECommerce Site, URL's, Canonical and Tracking Referral Traffic
                        Linwright
                        Linwright
                        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