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://moz.com/learn/seo/redirection
Good luck!
Umar
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
-
Redirection
Hi I used to have an online shop at https://shop.domain.co.uk. I have since done a new website and and want to divert all traffic to https://domain.co.uk/shoppage. The old shop was a subdomain but the new site has a shop on the normal domain. In Moz I am getting a lot of errors with missing descriptions and URL too long. so for example one of the urls <dl class="crawl-page-details-list"> <dd class="crawl-page-details-list-emphasis">https://shop.domain.co.uk/product-category/great-merchandise/?product_order=desc are like this. I would like to redirect them all to the new shop page. </dd> <dd class="crawl-page-details-list-emphasis">The missing descriptions are all similar. </dd> <dd class="crawl-page-details-list-emphasis">Is there a way I can redirect all these issues without doing them manually?</dd> <dd class="crawl-page-details-list-emphasis">Thanks </dd> </dl>
Moz Pro | | Paul_YAS0 -
"redirects" with no "redirect address"?
Episode 2 of "Damon the idiot noob" web series . . . I have like . . ..90 plus temporary redirects in my moz "medium priority diagnostics". But the majority of them have a url, but no redicret url. How can it be a temporary redirect if there is no redirect address? Some of the addresses simply don't make any sense. Like: http://www.thirdcoastsigns.com/catalog/seo_sitemap/product How on earth would a "seo_sitemap" be followed my a "/product"? This is a Magento site, so I know some of these things get created automatically . .. but what on earth is going on here? Help welcome, appreciated, and welcome. Did I mention it is welcome and appreciated?
Moz Pro | | damon12120 -
Crawlers reporting upper case letter url versions although these have been 301'd to lower case !?
Hi I have a client e-com site who's dev platform is on a windows server Their product pages have been auto-named after the product title, with the first letter in each word being upper case, which has hence translated to the URL having upper cases instances too. I asked them to set up 301 redirects for all url's that had upper case instances to lower case versions, which they say they have done. However I'm still seeing url's with upper case instances showing up in webmaster tools and moz crawl reports but when I copy & paste them into a browser they do redirect to, & resolve in, the lower case version. Its also upper case versions reported in the Google cache! So how come webmaster tools & Moz etc are reporting the upper case versions, surely if redirected it should be the lower case versions All Best Dan
Moz Pro | | Dan-Lawrence0 -
How to Check 301 Done Properly on Homepage
Hi All, I posted previously about this, and had some good advice (thanks!)... but not quite sure my problem has been fixed. About a month ago we changed our hosting over, and our dev didn't coordinate to have both versions of our homepage redirected to the same URL. Our crawl showed up with every single page as duplicate content, and our organic traffic has since dropped by over 60%. They have told me that it is fixed as of last Monday, and a redundant error that was appearing in my Google Analytics now says that it has been fixed, but Moz crawled my site 2 days ago and still says everything is duplicate content, and my organic traffic is stressing me out! Any advice on how I can check this is done for myself, rather than trusting these guys haven't messed it up any further? Or is it possible the Moz crawl is a bit slower? Thanks in advance.
Moz Pro | | b4cab0 -
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 -
Temporary Redirects
Hi, I've noticed that most of my temporary redirects are the cause of this parameter. http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&contenttype=vBForum_Post&showposts=1 http://www.maddenstudents.com/forum/search.php**?s=2f0b01c7d530cf117a2bbb6811f0b527**&do=finduser&userid=1&searchthreadid=15&contenttype=vBForum_Post&showposts=1 I also noticed that almost all of my duplicate content and duplicate titles are the cause of this parameter. I tried going into google webmasters, but they say i don't need to change anything. How do I get rid of this parameter because it seems to be causing a lot of errors and warning for me.
Moz Pro | | taychatha0 -
Open Site Explorer Issue - Pullng up No-follow links when settings ask for Follow + 301 Redirect..
Anybody else having this issue? Here lately when I am doing competitive research on open site explorer I set it to only pull up followed + 301 redirects and it will still pull up no-follow competitors links. Can anybody help me out here?
Moz Pro | | axzm0