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. Domain.com/old-url to domain.com/new-url

    Domain.com/old-url to domain.com/new-url

    Intermediate & Advanced SEO
    10 2 162
    • 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.
    • Edzjus333
      Edzjus333 last edited by

      HI,

      I have to change old url`s to new one, for the same domain and all landing pages will be the same:

      domain.com/old-url

      I have to change to:

      domain.com/new-url

      All together more than 70.000 url.

      What is best way to do that? should I use 301st redirect? is it possible to do in code or how? what could you please suggest?

      Thank you, Edgars

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

        If you're on Linux  - probably the best way it to change the htaccess file on the old domain:

        The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

        Options +FollowSymLinks
        RewriteEngine on
        RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

        Please REPLACE www.newdomain.com in the above code with your actual domain name.

        In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

        Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

        Disclosure - I didn't invent this myself - source can be found here: http://www.webconfs.com/how-to-redirect-a-webpage.php (this page give all the different options on how to redirect)

        rgds,

        Dirk

        DirkC 1 Reply Last reply Reply Quote 3
        • DirkC
          DirkC @DirkC last edited by

          Forgot to mention - there is also a topic on moz on redirects: http://moz.com/learn/seo/redirection - and I also was a bit to fast with my first answer - the rule I gave was if you only change the domain & keep the remainder of the url.

          If you also change the directory and the article name, than I hope there is a certain logic between your old structure and the new one. Redirections in htaccess can get quite messy if you have to use many rules inside (they can be in conflict and have an impact on performance).

          In each case - you should test all the url's of your old site on the new one (before launch) to be sure that they are all properly redirected. A crawl tool like Screaming Frog can do miracles for testing.

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

            Thank you! I had recomendation to make like this:

            domain.com/old-url

            301 redirect to

            domain.com/index... all old urls redirected to index page. that was some thing new for me and wanted to know, that this is wrong way.

            thanks

            E

            DirkC 1 Reply Last reply Reply Quote 0
            • Edzjus333
              Edzjus333 last edited by

              thanks, we change like this:

              domain.com/old-url-1 .... to domain.com/new-url1

              domain.com/old-url-2  ... to domain.com/new-url-2

              etc...

              so, we have to use 301st, correct?

              DirkC 1 Reply Last reply Reply Quote 0
              • DirkC
                DirkC @Edzjus333 last edited by

                That was the worst advice somebody could give you... redirecting all old url's to home is the best way for SEO disasters. Glad you double checked!

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

                  and one more questions, should we do some changes for site map, if we make 301st redirects? thanks!

                  DirkC 1 Reply Last reply Reply Quote 0
                  • DirkC
                    DirkC @Edzjus333 last edited by

                    That's correct. If possible - try to do the change on a test server - and try all your existing url's on this test url to be sure that everything is properly redirected (while testing - make sure that the test server doesn't get indexed)

                    So for domain.com/old-url1 you check if test-server.com/new-url1 is accessible & working - idem for the remainder (screaming frog can do this for you). If everything is properly redirected - you do the change on the production server.

                    Dirk

                    1 Reply Last reply Reply Quote 0
                    • DirkC
                      DirkC @Edzjus333 last edited by

                      Yes - you have to update the sitemap with the new url's.

                      If you don't do it - you'll see that Webmaster tools will generate warnings for every url that is redirected.

                      Dirk

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

                        Great, thanks a lot for your help!!! If you are in Latvia, beer from me 🙂 ciao 🙂 and thanks a lot!

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        • First post
                          Last post
                        • What is the fastest way disassociate an old URL with a new domain name?
                          JordanLowry
                          JordanLowry
                          0
                          2
                          52

                        • Redirecting main www. subdomain to new domain. Can you then create a new subdomain on the old domain?
                          RobertFisher
                          RobertFisher
                          0
                          6
                          370

                        • Domain.com/postname vs. Domain.com/blog/postname
                          Mark_Ginsberg
                          Mark_Ginsberg
                          0
                          7
                          222

                        • Revert to old domain w/ better DA/PA or stick with new one?
                          EGOL
                          EGOL
                          0
                          2
                          158

                        • Domain.com/keyword1.keyword2.html vs doamin.com/keyword1-keyword2.html
                          alecfwilson
                          alecfwilson
                          1
                          5
                          265

                        • How much is the effect of redirecting an old URL to another URL under a new domain?
                          JaneCopland
                          JaneCopland
                          0
                          4
                          89

                        • Domaim.com/jobs?location=10 is indexed, so is domain.com/jobs/sheffield
                          rikano
                          rikano
                          0
                          5
                          129

                        • How do i redirect www.domain.com/ to www.domain.com/index.php
                          Dr-Pete
                          Dr-Pete
                          0
                          3
                          1.3k

                        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