How to set up a 301 redirect
-
I have just started using SEOmoz and found that we have both a www.adagiowaterfeatures.com site and a adagiowaterfeatures.com site. I have not been able to figure out how to set up the 301 redirect so the non-www site automatically goes to the www site.
If anyone can tell me how the non-www site was set up to begin with I'd be interested. We only set up one site.
Thanks!
-
Thank you for your help! I think I've got it set up. I'll see next week when the reports are run again.
-
As Streamline mentioned, you can go to your htaccess and set up the 301. However, if you are on a windows server it may not be that easy. You can find most of your 301 redirect questions answered by google.
If you do not see or have access to the htaccess file then you can create it in notepad and FTP it to your site directory.
If you are using wordpress then there is a plugin for adding it. ..although I believe the more recent versions my include it already.
You should also consider reading this article in it's entirety: http://www.seomoz.org/learn-seo/redirection
-
By default, most web servers don't automatically redirect the non-www to www (or vice versa). If you have a Linux server, then you should be able to add the 301 redirect via your .htaccess file. Add the following code to your .htaccess file and it should work -
RewriteEngine On
RewriteCond %{HTTP_HOST} ^adagiowaterfeatures.com
RewriteRule (.*) http://www.adagiowaterfeatures.com/$1 [R=301,L]
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
-
Site Hacked: Is it Faster and Better to 301 or 404 Irrelevant URLs?
Hey Everyone, So our site was hacked which created a large amount of irrelevant URLs on our domain; resulting in thousands of 404 errors and pages coming up for searches unrelated to our brand. The question is now that the issues have been resolved (and site re-submitted) would it be quicker (and more ideal) to redirect important 404 errors that see traffic, have links…etc. although not relevant or just let everything 404 out? We’re not as concerned with offering a relevant user experience because these are not in our demographic but want to avoid these pages convoluting our analytics as well as issues that might arise from Google thinking these topics do apply. Any help or insight would be very appreciated. Please let us know if you have any questions, concerns or we could provide further details that might help. Looking forward to hearing from all of you! Thanks in advance. Best,
Reporting & Analytics | | Ben-R0 -
Help setting up FILTERS for External Payment pages?
Hi all, I own a webshop and believe my Google Analytics is not showing true data. At the moment when a user pays for their basket, they are redirected to an external secure payment page from my PSP, then after they have paid they are redirected back to my website. How is this visitor being counted? As the PSP-URL is a different site I assume this would be treated as an exit? Can I setup FILTERS to INCLUDE this URL so GA doesn't think its an external page or is there a better way? Thanks
Reporting & Analytics | | darrenbooy0 -
Increase in Direct traffic, drop in Google traffic, after updating Google Analytics settings.
I made some changes to our Google Analytics property settings (see notes in screenshot). As a result, there was an equal drop in Google traffic and increase in Direct traffic. Has anyone else seen something like this before? I'm wondering if I should revert. jE7buO6
Reporting & Analytics | | vcj0 -
Redirect 301
Hello, Case study:
Reporting & Analytics | | Shanaki
I changed all the links from an online store as follows: Before: www.domain.com/store1/category/product (link to a product, in magento e-commerce)
After: www.domain.com/category/product (link to a product). Basically I removed the stores, and made 1 default / base store, and put a 301 redirect (from .htacces). My question is:
1. How bad i broke the seo, cause i was no.1 on 30 keywords with these structure of links, and these kinds of link had page rank 2-3.
2. Does redirect 301 from old link, transfer the Page rank?
3. I should modify all link from link building to the new link? I mean urgent?
4. Does google will reindex the keywords with the new links? Thank you in advance.
With respect,
Shanaki0 -
Set Up of Goal Tracking with Google Analytics-$750 a Fair Price????
Greetings Moz Community! My firm operates commercial real estate website that contains 3-4 forms. Each form represents a goals. Google Analytics has been set up for years, but it does not track these form completions/goals properly. My SEO firm has offered to configure Goals on Google Analytics for $750. Is this a fair price? If the set up takes one hour, I am really over paying. But if this is a complex project that may take 7-9 hours the pricing seems OK. Also, the SEO firm will require an additional $750 in the future to set up event tracking. Is this excessive? I might add that my developer will need to add code to my web site. My SEO company has proven reliable and accurate. I can go to sleep at night knowing they are doing a good job. Where as my Argentinian developers really try their best, but perhaps because of the language barrier, they can make mistakes from time to time. I am willing to pay a premium to ensure that the job is done correctly domestically, however I don't appreciate over paying. Is the $750 payment for setting up Google Analytics reasonable assuming the job is done well??? Thanks,
Reporting & Analytics | | Kingalan1
Alan0 -
Google referral drop after setting preferred domain
Hey all, After doing a lot of research, and verifying here in the forum, I set our site's preferred domain on monday. We had no preferred domain set for years, but we were already redirecting the non www site to the www one. So, it was evidently an oversight. The day after I set the preferred domain (Jan 29) our google referral traffic hit an all time low. Any other thoughts on the cause? Any ideas on why setting a preferred domain would be a bad idea? Our site is www.mnn.com. Thanks!! Lisa
Reporting & Analytics | | Aggie0 -
Spike in 404 Errors from a redirecting domain
All, The non www version of a site I own redirects to the www version. Recently, WMT began showing a big spike in 404 errors (1,000+) on the non www version of the site. Site traffic is off about 15% since the spike in 404 errors. There was also a brief period about two weeks ago, where the site went down due to an issue with the code that has now been resolved. Any ideas how WMT is showing 404 errors on redirected pages? Thanks, John
Reporting & Analytics | | JSOC0 -
If a site has 301 redirect - Will the Analytics of the target site show it as a referral or as the traffic source it came from?
Lets say I have a site www.abc.com and I rederect that site to www.xyz.com. If ABC.com is still ranking for keyword X and orgnically someone searches for X and they click on the ABC.com listing - In the XYZ site analytics (which is the target site) does it show as organic or referall, direct? Thanks
Reporting & Analytics | | M_80