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.
301 redirect not working
- 
					
					
					
					
 Hi there! I have recently moved a domain that has been indexed by google and setup redirects so that it forwards to the new domain. It seems like the only redirect that actually is working is the canonical and main domain but every other page and or page nested within a folder are not working. Here is an example of some of the redirects. Am I doing this wrong? It seems to be going to the new domain but can't find the actual pages.... RewriteEngine On 
 RewriteBase /
 RewriteCond %{HTTP_HOST} !agoodsweep.com$ [NC]
 RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]
 redirect 301 woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
 redirect 301 /westchesterchimney.html http://agoodsweep.com/west-chester-chimney/Thanks in advance for any help!! 
- 
					
					
					
					
 Great news there is a plugin you might like http://wordpress.org/extend/plugins/redirection/ ps I would still use a maged Wordpress host they will speed up your site and keep it safe. Happy it is fixed 
- 
					
					
					
					
 PS all your links point to www.antrimscomplete.com 
- 
					
					
					
					
 Sorry I just spent 45 min and went to post the site made me login it did not post i will have more time later but do NOT tell google to devalue HTML links Make a redirect with links shown http://www.htaccessredirect.co.uk/ http://yoast.com/change-wordpress-permalink-structure/ http://www.webconfs.com/htaccess-redirect-generator.php http://www.internetofficer.com/seo-tool/redirect-check/ http://www.webconfs.com/how-to-redirect-a-webpage.php If moving your domain this is a good time to use a Wordpress only host use Zippykid , WPengine, Pagely, Web Synthesis or PressLabs Zippykid gives you the most for the moneyhttps://www.zippykid.com/pricing/they are great and will move you and fix this for you. https://www.zippykid.com/resources/kb/pre-sales-faq/can-you-migrate-my-website-for-me/This is how to move to there hosting your selfhttps://www.zippykid.com/resources/kb/getting-started/migrate-your-wordpress-website-to-zippykid/if not use this infohttp://robcubbon.com/moving-wordpress-site-to-new-domain/ 
- 
					
					
					
					
 read a bunch of those articles and saw the video w/matt cutts... i have gone into google webmaster tools and have both sites. I told google to redirect antrimscomplete.com to a goodsweep.com. I also simplified the htaccess : Redirect 301 /http://agoodsweep.com/ 
 redirect 301 /index.html http://agoodsweep.com/
 redirect 301 /woodstoveservicerepair.html http://agoodsweep.com/woodstoveservicerepair/
 and on and on...still the sitelinks in google get 404's. Looked in the host ftp panel to make sure it was reading it - it was. So then I just figured that if i redirect those links in agoodsweep (the new url) to the correct page, it might work.It worked! Thanks for all the help - much appreciated!! Now i have to do a bunch of redirects in the wordpress simple redirects plugin. 
- 
					
					
					
					
 hi Thomas - I did clear my cache and history and used separate browsers but do not see that it is working. I will check out the screaming frog!the old site at antrimscomplete.com has been a wordpress site for years now. I guess that the developer of that site left all the html pages up and then realized the problem and put in redirects. So this site has been sitting for a few years as-is. The owner wants to use a different domain name and wants a different look. I am trying to clean up the mess! I want it to be in wordpress because he uses it as a cms. I guess google indexed a hodge-podge of links, some of which are some of those html pages. Do you suggest going into google webmaster tools and demote the sitelink url's that are the old pages? Does google then use other pages to fill the slots? 
- 
					
					
					
					
 you have some serious problems that site just so you know. I will look at your inbound links a lot of them are very spamy. Why would you take an existing HTML website and convert it into WordPress out of curiosity? I'm not saying there aren't advantages toward press I love WordPress for it much to HTML however if you're going to do a web project like that you and want to start with a clean slate yours has anchor text stating that the website is going to be turned from HTML to WordPress that's not good. I would strongly consider having somebody like Joost audit the site and then fix it. Or simply have a developer pull the good code. The stylesheet will tell the website will look along with CSS with that start you can• with a fresh and get it right 
- 
					
					
					
					
 I am so sorry this is taking so long. Let me somebody that is sure to know It IS fine it redirects to http://agoodsweep.com/ no www if you want to use the www. you must swap what you have up there. use this to find the problem Use the link below to find any big problems in most websites. Change your browser or clean out your cash or reset your browser entirely because it is functioning correctly now http://www.screamingfrog.co.uk/seo-spider/ http://www.searchenginejournal.com/how-to-avoid-seo-disaster-during-a-website-redesign/42824/ http://www.searchenginejournal.com/why-and-an-easy-way-to-set-up-a-301-redirect-on-your-blog/36752/ http://www.searchenginejournal.com/seo-friendly-url-structure/4556/ http://www.searchenginejournal.com/10-ways-coding-can-help-your-seo/45402/ 
- 
					
					
					
					
 thanks for all the input! I did adjust the htaccess to Method 1, but still it is not working correctly. Here is what i did: Options +FollowSymlinks 
 RewriteEngine On
 RewriteCond %{HTTP_HOST} ^antrimscomplete.com [NC]
 RewriteRule ^(.)$ http://agoodsweep.com/$1 [L,R=301]
 RewriteCond %{HTTP_HOST} ^www.antrimscomplete.com [NC]
 RewriteRule ^(.)$ http://agoodsweep.com/$1 [L,R=301]The old site was originally html and then they made it into a wordpress but kept all the html pages up and active with a few redirects here and there. My client wants a new domain name and eventually a different design, so i have started the process by moving the old domain and all of it's content to the new domain. When you google antrims complete, google has added some site links and here is where things go south - it seems that the pages follow to the new domain but fall short of going to the new page. For example: google points to "our services" page and it redirects to: http://agoodsweep.com/ourservices.html in the htaccess i have: redirect 301 /ourservices.html http://agoodsweep.com/our-services/ it's weird because google any thoughts?? 
- 
					
					
					
					
 http://www.seomoz.org/learn-seo/redirection http://301redirects.net/redirect-old-domain-to-new-website.php http://website-tools.net/google-keyword/word/apache+redirect+domain http://support.google.com/webmasters/bin/answer.py?hl=en&answer=93633 Redirect an Old Domain to your New WebsiteHow to instructions using a 301 redirect and mod_rewriteSimply enter the following code into your .htaccess file (changing the addresses in the examples below as needed) and save the changes. If there are several individual pages which have moved, just repeat as neccesary. Not sure how to access or change or .htaccess file. Read our .htaccess guide here. Method 1: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]Method 2: Options +FollowSymlinks 
 RewriteEngine On
 RewriteCond %{HTTP_HOST} \olddomain.com$
 RewriteRule ^(.*)$ http://newdomain.com/$1 [R=301,L]Method 3:Options +FollowSymLinks 
 RewriteEngine on
 RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]Method 4:Redirect 301 / http://www.newdomain.com/ Benefits of redirecting traffic from your old domain - Don't lose website traffic! Ensure all visitors coming through to your old domain are instantly redirected through to your new address, rather than being presented with a an ugly error 404 which destroys trust in your website and perceived credibility. This means that customers who have already bookmarked your site, or memorised your web address can continue to have access seamlessly. Still have business cards or publications advertising your old website address or domain? This is not an issue with a properly setup 301 redirect.
- Keep the Google bot happy! When a website or domain returns an error 404 (page not found) this tells Google that your website no longer resides at this address, and Google therefore promptly removes all of your web listings from it's search engine index, meaning all your SEO efforts to raise search engine ranks will have been wasted. Instead, by properly setting up a 301 redirect for your domain name, this tells Google (and other search engines) that your website has changed address, and Google then therefore updates it's index to reflect this change of address (while preserving your rankings). Also very important to note, is that Google then recognises all inbound links pointing through to your old website and attributes these 'votes' towards your new website, transferring almost all of your Google Pagerank and other signals accross to your new site, and assisting in preserving your sites reputation.
 
- 
					
					
					
					
 Would you do me a favor and explained exactly what you are using WordPress? Can you give me both domains without folders? I will get you the right info. I also need to know are you using lightspeed, Apache what you using? sincerely, Tom 
- 
					
					
					
					
 I am confused. I am no .htaccess expert; however, I think you should have your old domain in the condition and the rule should have your new domain... like this maybe? RewriteEngine On 
 RewriteBase /
 RewriteCond %{HTTP_HOST} !antrimscomplete.com$ [NC]
 RewriteRule ^(.*)$ http://agoodsweep.com/$1 [L,R=301]Mike 
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
- 
		
		
		
		
		
		What is the difference between 301 redirects and backlinks?
 i have seen some 301 redirects on my site billsonline, can anyone please explain the difference between backlinks and 301 redirects, i have read some articles where the writer was stating that 301 are not good for website. Technical SEO | | aliho0
- 
		
		
		
		
		
		301 redirect syntax for htaccess
 I'm working on some htaccess redirects for a few stray pages and have come across a few different varieties of 301s that are confusing me a bit....Most sources suggest: Redirect 301 /pageA.html http://www.site.com/pageB.html or using some combination of: RewriteRule + RewriteCond + RegEx I've also found examples of: RedirectPermanent /pageA.html http://www.site.com/pageB.html I'm confused because our current htaccess file has quite a few (working) redirects that look like this: Redirect permanent /pageA.html http://www.site.com/pageB.html This syntax seems to work, but I'm yet to find another Redirect permanent in the wild, only examples of Redirect 301 or RedirectPermanent Is there any difference between these? Would I benefit at all from replacing Redirect permanent with Redirect 301? Technical SEO | | SamKlep1
- 
		
		
		
		
		
		Soft 404's on a 301 Redirect...Why?
 So we launched a site about a month ago. Our old site had an extensive library of health content that went away with the relaunch. We redirected this entire section of the site to the new education materials, but we've yet to see this reflected in the index or in GWT. In fact, we're getting close to 500 soft 404's in GWT. Our development team confirmed for me that the 301 redirect is configured correctly. Is it just a waiting game at this point or is there something I might be missing? Any help is appreciated. Thanks! Technical SEO | | MJTrevens0
- 
		
		
		
		
		
		Remove html file extension and 301 redirects
 Hi Recently I ask for some work done on my website from a company, but I am not sure what they've done is right. Technical SEO | | ulefos
 What I wanted was html file extensions to be removed like
 /ash-logs.html to /ash-logs
 also the index.html to www.timports.co.uk
 I have done a crawl diagnostics and have duplicate page content and 32 page title duplicates. This is so doing my head in please help This is what is in the .htaccess file <ifmodule pagespeed_module="">ModPagespeed on
 ModPagespeedEnableFilters extend_cache,combine_css, collapse_whitespace,move_css_to_head, remove_comments</ifmodule> <ifmodule mod_headers.c="">Header set Connection keep-alive</ifmodule> <ifmodule mod_rewrite.c="">Options +FollowSymLinks -MultiViews</ifmodule> DirectoryIndex index.html RewriteEngine On
 # Rewrite valid requests on .html files RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^ %{REQUEST_URI}.html?rw=1 [L,QSA]
 # Return 404 on direct requests against .html files RewriteCond %{REQUEST_URI} .html$
 RewriteCond %{QUERY_STRING} !rw=1 [NC]
 RewriteRule ^ - [R=404] AddCharset UTF-8 .html # <filesmatch “.(js|css|html|htm|php|xml|swf|flv|ashx)$”="">#SetOutputFilter DEFLATE #</filesmatch> <ifmodule mod_expires.c="">ExpiresActive On
 ExpiresByType image/gif "access plus 1 years"
 ExpiresByType image/jpeg "access plus 1 years"
 ExpiresByType image/png "access plus 1 years"
 ExpiresByType image/x-icon "access plus 1 years"
 ExpiresByType image/jpg "access plus 1 years"
 ExpiresByType text/css "access 1 years"
 ExpiresByType text/x-javascript "access 1 years"
 ExpiresByType application/javascript "access 1 years"
 ExpiresByType image/x-icon "access 1 years"</ifmodule> <files 403.shtml="">order allow,deny allow from all</files> redirect 301 /PRODUCTS http://www.timports.co.uk/kiln-dried-logs
 redirect 301 /kindling_firewood.html http://www.timports.co.uk/kindling-firewood.html
 redirect 301 /about_us.html http://www.timports.co.uk/about-us.html
 redirect 301 /log_delivery.html http://www.timports.co.uk/log-delivery.html redirect 301 /oak_boards_delivery.html http://www.timports.co.uk/oak-boards-delivery.html
 redirect 301 /un_edged_oak_boards.html http://www.timports.co.uk/un-edged-oak-boards.html
 redirect 301 /wholesale_logs.html http://www.timports.co.uk/wholesale-logs.html redirect 301 /privacy_policy.html http://www.timports.co.uk/privacy-policy.html redirect 301 /payment_failed.html http://www.timports.co.uk/payment-failed.html redirect 301 /payment_info.html http://www.timports.co.uk/payment-info.html1
- 
		
		
		
		
		
		Does it really matter to maintain 301 redirect after de-indexing of old URLs?
 Today, I was reading latest blog post on SEOmoz blog about. Uncrawled 301s - A Quick Fix for When Relaunches Go Too Well This is very interesting study about 301 & How it useful to maintain traffic. I'm working on eCommerce website and I have done similar stuff on my website. I have big confusion to manage 301 redirect. My website generates new URLs due to following actions. Re-write dynamic URLs. Re-launch entire website on different eCommerce platform. [osCommerce to Magento Commerce] Re-name category. Trasfer one product from one category to another category. I'm managing my 301 redirect with old practice. Excel sheet data from Google webmaster tools and set specific new URLs for redirect. Hoooo... Now, I have 8.5K redirect in htaccess... And, I'm thinking it's too much. Can we remove old 301 redirect from htaccess or not? This is big question for me. Because, all pages are not hyperlink on external website. Google have just de-indexed old URLs and indexed new URLs. So, Is it require to maintain 301 redirect after Google process? Technical SEO | | CommercePundit0
- 
		
		
		
		
		
		Web config redirects not working where a trailing slash is involved
 I'm having real trouble with getting working redirects in place to use on a site we're re-launching with a modified url structure. Old URL: http://www.example.com/example_folder/ New URL: http://www.example.com/example-of-new-folder/ Now, where the old URL's have a trailing slash the web.config simply will not accept it. It says the URL can start with a slash, but not end with a slash. However, many of my URL's do end with a slash so I need a workaround. These are the rules I'm putting in place: <location path="example_folder/"></location> Thanks Technical SEO | | AndrewAkesson0
- 
		
		
		
		
		
		Loss of search engine positions after 301 redirect - what went wrong?!?
 Hi Guys After adhering to the On Page optimisation suggestions given by SEOmoz, we redirected some of old urls to new ones. We set 301 redirects from the old pages to new on a page by page basis but our search engine ranking subsequently fell off the radar and lost PR. We confirmed redirection with fiddler and it shows 301 permanent redirect on every page as expected. To manage redirection using a common code logic we executed following: In Http module, using “rewrite path” we route “all old page requests” to a page called “redirect.aspx? oldpagename =[oldpagename]”. This happens at server side. In redirect.aspx we are redirecting from old page to new page using 301 permanent redirect. In the browser, when old page is requested, it will 301 redirect to new page. In hope we and others can learn from our mistakes - what did we do wrong ?!? Thanks in advance. Dave - www.paysubsonline.com Technical SEO | | Evo0
- 
		
		
		
		
		
		301 Redirect with an Exact Domain name Match
 My Client had a site that ranked for a pretty competitive two word phrase, but for a variety of reasons had to transfer the site to a different domain name (with none of the previous keywords). We've 301'd everything just fine to the new site, but our traffic for that two word phrase, as well as related long tail traffic, is beginning to drop. Could the drop be related to something that we didn't do well in the transfer? Or is it due to the new domain name now not being an exact match? Sitenote question: Our Google Analytics is still set up for the former domain name and shows data just fine. Is there any reason to switch GA to the new domain? What are the pros/cons? Much thanks in advance! Technical SEO | | TrevorMcKendrick0
 
			
		 
			
		 
			
		 
					
				 
					
				 
					
				 
					
				 
					
				 
					
				