Moz Q&A is closed.
After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.
How to 301 redirect from old domain and their pages to new domain and pages?
- 
					
					
					
					
 Hi i am a real newbie to this and i hope for a guide on how to do this. I seen a few moz post and is quiet confusing hopefully somebody able to explain it in layman terms to me. I would like to 301 redirect this way, both website contain the same niche. oldwebsite.com > newwebsite.com and also its pages..... oldwebsite.com/test >newwebsite.com/test So my question here is i would like to host my old domain and its pages in my new website hosting in order to redirect to my new domain and its pages how do i do that? would my previous page link overwrite my new page link? or it add on the juice link? Do i need to host the whole old domain website into my new hosting in order to redirect the old pages? really confusing here, thanks! 
- 
					
					
					
					
 i tried pasting that code there and change the old domain and new domain but it doesnt work 
- 
					
					
					
					
 Yes. you should move your contents to your new host and redirect your old domain to new one. 
- 
					
					
					
					
 by parking the domain in the new hosting, all my previous pages will be gone right? unless i move everything from the old server to the new one? so i can redirect those pages to my new one too 
- 
					
					
					
					
 Yes. Simply park your domain on your new hosting and redirect it using this code. 
- 
					
					
					
					
 do we need to keep this redirect permanently? for example to keep the hosting on in order for it to redirect it to my new site. 
- 
					
					
					
					
 yes; all of your old links move to new domain without hurting your SEO. Its a permanent redirection called 301. 
- 
					
					
					
					
 by using this code Options +FollowSymlinks 
 RewriteEngine On
 RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
 RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]how would it affect my seo? would it merge from the old link to the new link? 
- 
					
					
					
					
 Hi its better to ask instead of not asking  First, you should host your old domain on your new site and use this htaccess code to redirect 301 all your urls to new domain(don't forget to change newdomain.com and yourdomain.com with your new and old site): Options +FollowSymlinks 
 RewriteEngine On
 RewriteCond %{HTTP_HOST} ^olddomain.com [NC]
 RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]RewriteCond %{HTTP_HOST} ^www.olddomain.com [NC] 
 RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]then you should submit a request in webmaster tools > change of address part to move your site authority completely. 
Browse Questions
Explore more categories
- 
		
		Moz ToolsChat with the community about the Moz tools. 
- 
		
		SEO TacticsDiscuss the SEO process with fellow marketers 
- 
		
		CommunityDiscuss industry events, jobs, and news! 
- 
		
		Digital MarketingChat about tactics outside of SEO 
- 
		
		Research & TrendsDive into research and trends in the search industry. 
- 
		
		SupportConnect on product support and feature requests. 
Related Questions
- 
		
		
		
		
		
		New Flurry of thousands of bad links from 3 Spammy websites. Disavow?
 I also discovered that a website www.prlog.ru put 32 links to my website. It is a russian site. It has a 32% spam score. Is that high? I think I need to disavow. Another spammy website link has spam score of 16% with with several thousand links. I added one link to the site medexplorer.com 6 years ago and it was fine. Now it has thousands of links. Should I disavow all three? White Hat / Black Hat SEO | | Boodreaux0
- 
		
		
		
		
		
		Schema Markup for regular web pages?
 I'm a bit confused about what Schema markup should be applied to such regular, informative web pages. White Hat / Black Hat SEO | | gray_jedi
 We have a few pages describing our technology and solutions. These pages are not products or news articles. And they are not something that should be reviewed/rated. What Schema markup should be used for a standard run-of-the mill web page?
 Is there a good reference / tutorial for optimizing the schema markup of an informational website? Any advice is much appreciated, thank you!0
- 
		
		
		
		
		
		Pages mirrored on unknown websites (not just content, all the HTML)... blackhat I've never seen before.
 Someone more expert than me could help... I am not a pro, just doing research on a website... Google Search Console shows many backlinks in pages under unknown domains... this pages are mirroring the pages of the linked website... clicking on a link on the mirror page leads to a spam page with link spam... The homepage of these unknown domain appear just fine... looks like that the domain is partially hijacked... WTF?! Have you ever seen something likes this? Can it be an outcome of a previous blackhat activity? White Hat / Black Hat SEO | | 2mlab0
- 
		
		
		
		
		
		How would you optimize a new site?
 Hi guys, im here to ask based on your personal opinion. We know in order to rank in SEO for a site is to make authority contents that interest people. But what would you do to increase your ranking of your site or maybe a blog post? leaving your link on blogs comment seem dangerous, nowadays. Is social media the only way to go? Trying to get people to write about you? what else can be done? White Hat / Black Hat SEO | | andzon0
- 
		
		
		
		
		
		Best Location to find High Page Authority/ Domain Authority Expired Domains?
 Hi, I've been looking online for the best locations to purchase expired domains with existing Page Authority/ Domain Authority attached to them. So far I've found: http://www.expireddomains.net White Hat / Black Hat SEO | | VelasquezEF
 http://www.domainauthoritylinks.com
 http://moonsy.com/expired_domains/ These site's are great but I'm wondering if I'm potentially missing other locations? Any other recommendations? Thanks.1
- 
		
		
		
		
		
		Is it wrong to have the same page represented twice in the Nav?
 Hi Mozzers, I have a client that have 3 pages represented twice in the Nav. There are not duplicates since they land with the same URL. It seems odd to have this situation but I guess it make sense for my client to have those represented twice since these pages could fall into multiple categories? Is it a bad practice for SEO or is it a waste to have those in the NAV? Should I require to eliminate the extras? Thanks! White Hat / Black Hat SEO | | Ideas-Money-Art0
- 
		
		
		
		
		
		Penalised by Google - Should I Redirect to a new domain?
 Last month my rankings dropped a couple of pages on Google and am no longer receiving as many visits from Google as I used to. It's coming up to summer which is the time my business naturally picks up yet I can't fix this problem. I have a crazy idea of redirecting my established site onto a new domain in hopes that the penalty would be removed. I have tried removing any manipulative links yet my ranking are not coming back. Anyone had success in redirecting to a new domain? White Hat / Black Hat SEO | | penn730
- 
		
		
		
		
		
		Can you block backlinks from another domain
 Wondering if this is somehow possible. A site got hacked and created a /data folder with hundreds of .php files that are web pages selling all sorts of stuff. We deleted the /data folder and blocked Google from indexing it. Just noticed in Webmaster Tools that the site has 35,000 backlinks from other sites that got hacked with the same way. Is there a way to block these sites? I am assuming there isn't, but wanted to see if anyone ran into the same problem. It is a wordpress site is that helps. White Hat / Black Hat SEO | | phatride0
 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				