Domain.com/old-url to domain.com/new-url
-
HI,
I have to change old url`s to new one, for the same domain and all landing pages will be the same:
I have to change to:
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
-
Great, thanks a lot for your help!!! If you are in Latvia, beer from me ciao and thanks a lot!
-
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
-
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
-
and one more questions, should we do some changes for site map, if we make 301st redirects? thanks!
-
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!
-
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?
-
Thank you! I had recomendation to make like this:
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
-
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.
-
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
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
New Domain, No 301 Possible - Any Advice
A client of mine lost their domain when an ex business partner sold it out from under them. They've filed with WIPO, but in the meantime we're trying to figure out how to help them out. They had two really excellent links - one from the NY Times and one from a .edu website. I'm going to reach out to the authors of those articles (the articles are pretty old, so I doubt they'll change the links), but does anyone have any advice on how to let search engines know the new domain replaces the old without having the ability to do redirects? The content on the site is exactly the same - we were able to get the files over, happily. I've re-submitted the site for indexing, changed the domain links in Moz Local, changed in Analytics, and on all their social sites. Is there anything I'm not thinking of that can be done to let Google know that this new domain replaces the old? Thank you!
Intermediate & Advanced SEO | | newwhy0 -
6 months Later - 0 Domain Authority/Page Authority and losing Rankings
Hi Moz, Sorry if this comes across as a "Do My Job For Me" type of post but we are an E-Commerce store that have been live since January but have not seen any increase in performance on our site and over the past month, have even seen our rankings decrease. We have 1300 products on site and about 1500 pages in total. 1. As for on-site optimization, we have got 2 reviews and follow up reviews with a highly reputable reviewer from People Per Hour and solved any issues she has found. 2. Updated the Meta Data for products and Alt Descriptions for images focusing on the keywords we wish to rank for. We post weekly blogposts linking back to our products. 3. Social Media Campaigns with regular campaigns on FaceBook, Pinterest, Google+ and Twitter. 4. Attempted to build FOLLOW backlinks to articles relating to products on our site. We have also considered purchasing backlinks to improve our situation as we have yet to see any of these pages be crawled by Google over a month later. I have read a guides on Moz and other sites on how to improve our authority and improve rankings but none have offered much by way of practical solution. My question being, is this just a matter of patience or should I be worried/improving anything given we have 0 Domain Authority and Page Authority on all pages? Thanking you in advance, SEO Novice.
Intermediate & Advanced SEO | | csworkwear0 -
Redirecting a Few URLs to a New Domain
We are in the process of buying the blog section of a site. Let's say Site A is buying Site B. We have taken the content from Site B and replicated it on Site A, along with the exact url besides the TLD. We then issued 301 redirects from Site B to Site A and initiated a crawl on those original Site B urls so Google would understand they are now redirecting to Site A. The new urls for Site A, with the same content are now showing up in Google's index if we do a site:SiteA.com search on the big G. Anyone have any experience with this as to how long before Site A urls should replace Site B urls in the search results? I undestand there may be a ranking difference and CTR difference based on domain bias, etc... I'm just asking if everything goes as planned and there isn't a huge issue, does the process take weeks or months?
Intermediate & Advanced SEO | | seoaustin0 -
Is having a .uk.com domain a hindrance for long-term SEO?
I know there has been some mention on Moz Q&A for .uk.com, but not for at least 3 years. So I wanted to see if any Mozzers out there knew if having a .uk.com domain would hinder our SEO long-term? Our company is finally now taking SEO seriously and we're planning some great stuff for the year ahead, but I have a feeling that our .uk.com domain may prevent us from out-ranking some of the bigger companies out there. Does anyone have any thoughts about this out there? Thanks 🙂
Intermediate & Advanced SEO | | JamesPearce0 -
Consolidating two separate domains and redirecting towards a new replatformed domain
A client has two different sites selling the same products with the same content, they would like to replatform onto Magento while redirecting those 2 sites to the new URL. The question is, besides monitoring the 301 redirects is there anything else to take into consideration when consolidating two sites into one new site?
Intermediate & Advanced SEO | | RocketWeb0 -
Sub Domains vs. Persistent URLs
I've always been under the assumption that when building a micro-site it was better to use a true path (e.g. yourcompany.com/microsite) URL as opposed to a sub domain (microsite.yourcompany.com) from an SEO perspective. Can you still generate significant SEO gains from a sub domain if you were forced to use it providing the primary (e.g. yourcompany.com) had a lot of link clout/authority? Meaning, if I had to go the sub domain route would it be the end of the world?
Intermediate & Advanced SEO | | VERBInteractive0 -
Http://blogsearch.google.com/ping
Is there any reason why a website would submit all their content (videos, photo galleries, articles) to this?
Intermediate & Advanced SEO | | MargaritaS0 -
Purchased a high ranking domain and want to transfer my site to the new domain
I recently purchased a highly ranked domain. The link profile is very good and I don't want to lose to many links however I want to transfer my site to that domain. What is the best way of doing this without losing the current rank on search engines? Also how much does the transfer of registrar information impact my SEO?
Intermediate & Advanced SEO | | ydop0