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
-
Wix 301 Root Domain to HTTPS
We built our website on Wix, and Moz is saying that there is a 301 redirect chain issue: http://makeshark.com redirects to...
Moz Pro | | Makeshark
http://www.makeshark.com redirects to...
https://www.makeshark.com Is there a way to configure Wix to redirect http:// (with out the "www") straight to https://www?3 -
How to resolve recurring 302 redirects?
In my Moz site crawl there is a fluctuating number of 302 redirect pages that don't physically exist - most are through a 'compare product' option. The number of 302s varies significantly by how many pages Rogerbot has crawled - the more pages crawled, the higher the number of 302s, so I'm pretty sure it's the 'compare product' that's causing the issue. I can't find a way to remove the compare product button so I need another way to resolve it. I can;t canonicalise the pages as they don't exist as such. Does anyone have any ideas?
Moz Pro | | MrLeeB0 -
Magento- Temporary Redirects
Hey guys! My organization just launched an eCommerce site and we are receiving a lot of temporary redirect issues. How do you solve this issue (36k of them) within Magento Enterprise? 1. All settings have been changed to 301 redirects but I am still receiving the same errors during my crawl report. 2. Website URL = www.CanyonOS.com Any support or advice is greatly appreciated! Oh and if you need any toner, you know where to go :)! Sincerely,
Moz Pro | | CanyonOS0 -
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 -
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 -
Way too many 301 redirects
Hi Guys Posting here again in regard to 301 redirects, SEOMOZ has just finished my second crawl, and its showing me nearly 4k 301 redirects, i am only tracking my new site which by the way changed domain name , however all im doing is tracking the new domain and there are no 301 implemented on that side (Except Canonical), so was wondering how SEOMoz is finding 4k of redirects. do you think it could be chaining somewhere ? as all the tests look good or could there be a problem with the reporting
Moz Pro | | kellymandingo0 -
Www, non www, 301 redirects, Google webmaster tools & SeomozPro
arg! Any help on this topic would be greatly appreciated! This is in regards to sheffieldfurniture .com In October of 2011 I had our host set up a redirect for our site so all non www requests would be redirected to the www version and it works great (so it seems at least) Recently I signed up for SEOMOZPRO and when I started trying to track my organic results for various keywords I realized that Google has my site indexed in the non www format. Is this a problem? I’ve read you can tell google what your preferred domain is in Google Webmaster Tools, is that what I should be doing? Are there any negatives to doing that? I’m just confused as to why Google hasn’t noticed or acknowledged the redirect in 4 months. It makes me wonder if something isn’t working properly? I have since added a second SEOMOZPRO campaign with the non www version but I’m worried about having historical tracking issues if I then tell google to use the www version…
Moz Pro | | SheffieldMarketing0