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
-
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 -
301 or canonical for multiple homepage versions?
I used 301 redirects to point several versions of the homepage to www.site.com. i was just rereading moz's beginners guide to seo, and it uses that scenario as an example for rel canonical, not 301 redirects. Which is better? My understanding is that 301s remove all doubt of getting links to the wrong version and diluting link equity.
Moz Pro | | kimmiedawn0 -
Easiest Way to redirect 50 404s spread out randomly over 9400 pages
Hello, I've got about 50 404s I'm hunting down and redirecting (to the home page) on a client's site. There are no on-site links pointing towards most of them, they're just out there floating and indexed by google. I should be more specific - these URLs just pull up as a blank white page with nothing on it. I'm concerned that Google has these indexed and it is causing a problem. They're all Ecommerce category pages where the URL has been changed. site:domain.com is showing 9400 pages. Moz analytics is showing 4 404s Is there any faster way to track down all 50 404s than to manually go through the 9400 URLs in the SERPs after I type in site:domain.com? Thank you.
Moz Pro | | BobGW0 -
HTC access 301 redirect rules regarding pagination and striped category base (wp)
I am an admin of a wordpress.org blog and I used to use "Yoast All in one SEO" plugin. While I was using this plugin it stripped the category base from my blog post URL's. With yoast all in one seo: Site.com/topic/subtpoic/page/#
Moz Pro | | notgwenevere
Without yoast all in one seo: Site.com/category/topic/subtopic/page/# Now, that I have switched to another plugin, I am trying to manage the page crawl errors which are tremendous somewhere around 1800, mostly due to pagination. Rather than redirecting each URL individually I would like to develop HTC access 301 redirects rules. However all instructions on how to create these HTC access 301 redirect rules are regarding the suffix rather than the category base. So my question is, can HTC access 301 redirects rules work to fix this problem? Including pagination? And if so, what would this particular HTC access 301 redirect look like? Especially regarding pagination? And do I really have to write a 301 redirect for each pagination page?0 -
I did a redirect and now I'm getting duplication errors.
I was told by SEO Moz to do a redirect so that our website would be crawled with and without the www in front of the address. I did and now I'm getting duplicate page and title errors because the crawler is seeing www.oursitename.com and its underpages and oursitename.com and its underpages and giving me duplicate page content errors and duplicate page title errors. Makes sense, but how do I make it stop? Anyone else have this problem?
Moz Pro | | THMCC0 -
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 -
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