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
-
Many New Urls at once
Hi, I have about 5,000 new URLs to publish. For SEO/Google - Should I publish them gradually, or all at once is fine? *By the way - all these URLs were already indexed in the past, but then redirected. Cheers,
Intermediate & Advanced SEO | | viatrading10 -
301 from old site to new one , Should I point to home page or sub category page ?
Hey Seo Experts, I have a small website ranking for few terms like cabinets sale, buy etc . However what i have now decided is to launch a New website with more different products like living room furniture, wardrobes etc . Out of all these categories on new website Cabinets is one of the SubCategory . Now I do not want to have 2 websites . So wanted to 301 from small cabinets website to newly created website. Some of the doubts I have at the moment is ? 1 Should I REDIRECT 301 to sub category (i,e cabinets) which is purely related to Cabinets or Do a Redirect to HOME PAGE . As I also need more Authority to home page as well , as this is relatively new website ? 2 Second question related to this. If you have multiple sub domains does it divide the total authority & TF.Or it is just Ok to have multiple Sub domains if needed ? Any advice appreciated !! Thanks .
Intermediate & Advanced SEO | | aus00070 -
GTM Migration from Old to New Verison as Old Version closing on 1st April
Hi Guys, Can you please tell me is it a correct configuration for tracking thank you page? In Old Version of Tag Manager - GA conversion Tracking, tag type - universal analytic, web property id - UA-12345678-9
Intermediate & Advanced SEO | | devdan
track type - transaction, Firing rule -{{url}} contains ordersuccessful.aspx, {{event}} equals gtm.dom In New Version of Tag Manager - Choose Product - Google Analytic, choose tag type - universal analytic, configure tag - tracking id - UA-12345678-9, track type - transaction, Fire on -Name - order successful page, type - custom event, Filter- Page url contains ordersuccessful.aspx, event equals gtm.dom If i remove event equals gtm.dom will tag fire and transaction details will reflect in google analytic? I am doing Manually configuration in new version of GTM as i have only few tags so just want to know if all tags successfully configured & I placed new GTM code on my website then google analytic will start reflecting data at same moment right, it will not take 24 hours right? Thanks! Dev0 -
New site causes massive drop off in ranking, old site restored how long to recover?
Hello, We launched and updated version of our site, mainly design changes and some functionality. 3 days after the launch we vanished from the rankings, previous page one results were now out of the top 100. We have identified some of the issues with the new site and chose to restore the old well ranking site. My question is how long might it take for the ranking to come back, if at all? The drop happened on the third day and the site was restored on the third day. We are now on day 6. Using GWT with have used fetch as Google and resubmitted the site map. Any help would be gladly received. Thanks James
Intermediate & Advanced SEO | | JamesBryant0 -
Multiple Domain Names Pointing to One URL
Hi! A company I work with has purchased several (70-something) domain names that are relevant to their business. According to their IT pro, they're currently using DNS to point those domains to our IP address, with a catch-all header on IIS for that IP address. Essentially, we have 70-something domain names that direct to the homepage. I noticed that some have been indexed by Google and are pulling in the meta of the homepage they're being directed to. Is this potentially an issue? If so, would 301 redirects fix this or are we okay with the status quo and the indexing is no big deal? Thanks in advance!
Intermediate & Advanced SEO | | 199580 -
SEO within the URL /
If I were optimizing for 'marketing success' and my URL structure was domain.com/marketing/success would that count? I'm not sure if the '/' affects the keyword term. My assumption is that it does, but I wasn't 100% sure. Thanks!
Intermediate & Advanced SEO | | KristinaWitmer0 -
Requesting New Custom URL for Google+ Local Business Page
This question is about the new custom URLs for Google+ Local Business pages: Has anyone heard any success stories with requesting a custom URL different than the two reserved ones offered by Google via contacting a Google Rep by phone? And what advantages might there be for a local business to go with a very long custom URL such asgoogle.com/+rosenbergAndDalgrenLLPFortLauderdale as opposed to just google.com/+RdLawyers? Does having the city name in the URL offer any <acronym title="Search Engine Optimization">SEO</acronym> benefit? Thanks!
Intermediate & Advanced SEO | | gbkevin0 -
.co.uk to .com - Transfer of domain
After having our site up for over a year and gaining PR 3 and more than a dozen page 1 rankings on Google for most of our competitive terms, we have realised we have to transfer to .com from our current .co.uk URL for legal reasons. What would the best way be to carry out such a move in an SEO perspective?
Intermediate & Advanced SEO | | qtasad0