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
-
Consolidating Multiple Domains into A Single Domain
I have a client who's website is an amalgamation of multiple domains. jacksonhole.net is the main domain but the site passes traffic back and forth from the following domains/sites. My questions is, would it it be better for SEO to consolidate all of these domains under the single high authority domain and 301 redirect the rest or is that a really bad idea? Thanks for your help. jacksonhole.net (Domain Authority 31) jackson-hole-rental-condos.com (Domain Authority 22) jackson-hole-rental-homes.com (Domain Authority 21) j acksonholehotelguide.com (Domain Authority 19)
Intermediate & Advanced SEO | | dbaxa-2613381 -
Changing from .com to .com.au
Hi All, we are looking for some guidance please, if at all possible. We have .com domain (the domain is older than 10 years), we have been using it for 2 years. We also have .com.au version of the domain (the domain is 2 years old, pointing to the .com domain) and isn't being used. We are an Australian based company. Our question is, should we be using .com.au instead of .com and if so, how would you advise going about doing the change over without having huge SEO impact on our business (negatively). We are on the home page for most of the searches we have optimized for, but we are always below the .com.au's - which is why we are considering the possibility of the move? Any advice would be GREATLY appreciated 🙂
Intermediate & Advanced SEO | | creativeground0 -
URL Errors for SmartPhone in Google Search Console/Webmaster Tools
Howdy all, In recent weeks I have seen a steady increase in the number of smartphone related url errors on Googles Search Console (formerly webmaster tools). THe crawler appears to be searching for a /m/ or /mobile/ directory within the URLs. Why is it doing this? Any insight would be greatly appreciated. Unfortunately this is for an unresponsive site, would setting the viewport help stop the issue for know until my new responsive site is launched shortly. Cheers fello Mozzers 🙂 Tim NDh1RNs
Intermediate & Advanced SEO | | TimHolmes1 -
Does it make sense to create new pages with friendlier URLs then redirect old pages to new?
Hi Moz! My client has messy URLs. does it make sense to write new clean URLs, then 301 redirect all old URLs to the new ones? Thanks for reading!
Intermediate & Advanced SEO | | DA20130 -
Keywords repetition in both post/page title+url path or spread between both of them?
Hello all, I have one doubt concernig SEO optimization as I am buiding the structure of my website to be sound with the Keywords I am targeting: I have read that the post/page name is very important (selecting the right keywords you are targeting and the lenght) and also the url path name, taking into account both keywords+lengt. I still have the doubt if (Imagine I am considering 5 keywords for SEO.): 1) OPTION 1 I should use as far as it is possible, the 5 keywords in the post/page title and repeat the 5 same keywords in the url path name? OR 2) OPTION 2 I should use these 5 keywords spread between title and url path? I mean maybe I use 3 keywords in the post/page name and 2 keywords in the url path, but my main concern is as search engines gives more weight in SEO for post/page name rather than to the url path name, maybe I will miss 2 of the keywords I used in the url path name? My choice would be OPTION 2 as I can have: Shorter post/page name - Shorter url path name. More caracters for targeting the keywords: 75 (from post/page name) + 115 (from url path name). I avoid repetition of keywords in both title and url path. Thank you very much, Antonio
Intermediate & Advanced SEO | | aalcocer20030 -
Multi domain redirect to single domain
Hello, all SEOers. Today, I would like to get some ideas about handling multiple domains. I have a client who bought numerous domains under purpose of prevent abuse of their brand name and at the same time for future uses. This client bought more than 100 domains. Some domains are paused, parked, lived and redirected to other site. I don't worry too much of parked domains and paused domains. However, what I am worrying is that there are about 40 different domains are now redirected to single domain and meta refresh was used for redirections. As far as I know, this can raise red flag for Google. I asked clients to clean up unnecessary domains, yet they want to keep them all. So now I have to figure out how to handle all domains which are redirect to single domain. So far, I came up with following ideas. 1. Build gateway page which shows lists of my client sites and redirect all domains to gateway page. 2. Implement robots.txt file to all different domains 3. Delete the redirects and leave it as parked domains. Could anyone can share other ideas in order to handling current status? Please people, share your ideas for me.
Intermediate & Advanced SEO | | Artience0 -
WWW vs Non-WWW/Moving a site to a new CMS/Redirect all of the previous URLs
We are working on a new design for a website, which is currently on a CMS that has non-seo-friendly URLs. There is no redirection of 'www' to non-www or vice versa, or handling of homepage redirection so there is only one instance of 'home'. To move the site in the future, all of these URLs will have to be redirected to their new, and I hope, seo-friendly counterparts. Is it prudent now to redirect the four home page links so there is only one? and to redirect all non-www to 'www' so there is only one instance of each page? Or should I leave it and redirect all of them when the time comes?
Intermediate & Advanced SEO | | haan_seo0 -
How to make SEF URL for PHP/MySQL web site
Hi mozzers! I'm fairly new to SEO topic, but I'm learning fast because all of you, so please take my warm thanks first! The problem: I have a web site based on PHP/MySQL that has no SEF addresses, it's made by unknown CMS, so I cannot use any extensions or modules, I have to write my own SEF extension. The question: Would you suggest me, please an article or idea, what I need to make my URLs search engine friendly? What's best to use: .htaccess or something else? This is the aforementioned web site: www.nortrak.bg Thanks a lot, Kolio
Intermediate & Advanced SEO | | kolio_kolev0