301 Redirects
-
Hi,
Going to be redirecting our current domain to a new domain. Can anyone verify for me that I'm doing it correctly. I want to forward the entire domain plus individual urls. My current structure is below:
Options +FollowSymLinks
RewriteEngine onRedirectMatch 301 ^(.*)$ http://www.new-site.net
Redirect 301 /old-page.html http://www.new-site.net/web-page
-
It looks like your last line is just redirecting one page? This has worked for me to redirect them all to their corresponding pages on the new domain (*You'll want to test this first):
<code>RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !newdomain.com$ [NC] RewriteRule ^(.*)$ http://newdomain.com/$1 [L,R=301]</code>
-
Hey,
Make sure to have a complete structure & SEO plan in place before starting redirection. There is nothing wrong with this Syntax, but for better understanding I'd suggest you to go through this guide one more time,
https://mza.bundledseo.com/learn/seo/redirection
Good luck!
Umar
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
-
SEO impact of redirecting high ranking mirror site to the main website
During SEO audit for a client I noticed that they had over a dozen duplicate websites that are carbon copies of the main website. This was done via CMS platform and DNS. One of the mirror sites has about 400 indexed pages and has Moz DA of 42 and 137k External Equity-Passing Links. Full metrics comparison is attached. I originally planned on doing rel="canonical" on the mirror site but the CMS vendor never even heard of it and is refusing to implement it in the header. My only other option is doing one to one 301 redirects. Since the mirror site ranks well, even competes with main domain for some positions on the 1st page of SERP, what will be the impact after the redirects? Is doing 301's still the best option? Thanks! PrUpN3q
Moz Pro | | dasickle0 -
301 Redirects - But still duplicate content?
Our website domain website.com redirects to website.com/en (since it's in English). Therefore, all pages on website.com redirects to website.com/en. In my Moz analytics, it says I have duplicate content, and lists all of these pages. Didn't the 301 redirects take care of the duplicate content? Or do I still have to add canonical tags?
Moz Pro | | Taulia0 -
Is SEOmoz spider ignoring my redirect?
My client was previously serving their website from both a .co.uk and a .com domain. The DNS for each of these domains was pointing to the same place, rather than redirecting. I saw this as a potential duplicate content problem so I set the .co.uk to 301 redirect on to the .com. As a user, the 301 seems to be working correctly. However, now that I have done this, SEOmoz is picking up thousands of "inbound" links from the .co.uk domain. Essentially, every single link on the internal site, is being duplicated in my stats as an inbound link as well. It appears that the spider is ignoring the redirect. I'm not sure if it's a legitimate issue that will upset Google too, or if it's just a bug with SEOMoz's spider.
Moz Pro | | MadisonSolutions0 -
301 redirect
Guys Another post by me in regard to a 301 redirect which follows on from this post here http://www.seomoz.org/q/seomoz-crawl-test To quickly summarise all i have done is change URL name and done a simple 301 to change name where respective urls form old go to the relevant new pages Ok Now 14 weeks since we implemented our 301, Originally done In PHP everything looked text book but still 80% down on rankings PR has returned to inner pages Home page has not updated After some advice from some of the members here i changed the 301 on the old domain name from PHP to Htaccess This is the code i used on the old server is below RewriteEngine on RewriteRule ^(.*)$ http://www.newsite.co.uk/$1 [R=301,L] On the new site the canonical is fixed by PHP , i want to change this to Htaccess, capturing the canonical element along with removing the trailing slash (This is only what has been done in the past so just keeping consistant) This is the situation Old site sits on a different server from the new so each have their own individual I.P addresses I am convinced somewhere in the PHP application we are chaining so want Htaccess on old server to do the 301 and want htaccess on new server to deal with canonical elements and remove trailing slash (if that best practice) What would be the best way to do this where we wont be chaining 301's at present all looks perfect and doing what it should, but i know there is an issue and i believe it to be with the php script Thanks for taking the time to look Paul Ps where i had the issue on the old site where Crawl test said page don't exist i now have on the new site if i try and crawl the non www. version of the new site , tested on a site that has the htaccess 301 in place and get the option of crawling the old or the new page so something don't stack up so its not the tool its the PHP Fetch as Googlebot and every other tool reports the correct header responses
Moz Pro | | kellymandingo0 -
Redirect analysis tool
I'm looking for a tool like this: http://www.internetofficer.com/seo-tool/redirect-check/ that can check hundreds/thousands of URLs and give me a report as to which ones have been redirected. Does anyone know of something that can do this?
Moz Pro | | glass010 -
How long after 301 redirect does seomoz toolbar take to update?
I 301 redirected a page to a new URL that is better optimized for my content. However as soon as I did this upon visiting the page, my browser's seomoz toolbar "page authority measurement had fallen to "1" it was previously in the 40's... Does anyone know how long it takes for the seomoz toolbar PA rank to refresh on a 301 redirect? I see where seomoz says the redirected page will retain between 90-99% off its link juice. I'm fine with losing a little if it would mean long term gains in terms of good on-page seo. Any ideas?
Moz Pro | | TrueResults0 -
Why is my site showing a redirect that doesn't exist?
I have two sites. www.plasticandfoampackaging.com www.flyfitters.com Previously I had flyfitters 301 redirecting to plasticandfoampackaging. I stopped that about a month ago. I moved the nameservers and stopped the redirect. I am a novice but it seems to be working perfectly. However, SEOMOZ is showing that the redirect still exists. Does the site need to be recrawled or do I need to update the info somewhere? Please advise. Thanks Patrick
Moz Pro | | PlasticandFoamPackaging0 -
Why are SEOmoz Pro Keyword Ranking reports different between two 301-linked URLs?
Hi, My main domain is www.dancenut.com. I have this 301 URL redirected to www.dancenut.com/boston/. I set up an SEOmoz Pro campaign for each of these URLs in order to see if they were being treated differently in any way. In most cases the report results are identical, or the small differences are understandable. However, there is one big difference between the two sets of campaign reports. In the Keyword Ranking reports, the data for the Bing and Yahoo! reports are identical, but the data for the Google reports are dramatically different. Out of 21 keywords, 9 are listed in the top 50 for www.dancenut.com, but only 2 are listed in the top 50 for www.dancenut.com/boston/ (the specific positions are the same for the 2 keywords that are listed for both). Does this make any sense? Could the SEOmoz Pro data be wrong? If not, then I'm suspicious that Google may not be interpreting the 301 redirect properly. I don't think this could be fully explained by a 1-10% reduction in link juice due to the 301 because I have one keyword for which my site ranks #1 in Google, Bing, and Yahoo! with www.dancenut.com, but it doesn't even rank in the top 50 in Google with www.dancenut.com/boston/. And why would these differences only exist for Google? Any insight would be much appreciated! Andrew
Moz Pro | | dancenut0