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
-
How to set and understand behavior flow in google analytic?
Hello Experts, How to set and understand behavior flow in google analytic? I have attached screenshot of my behavior flow it is showing not set. So how to set? Thanks! MAQnG SQ7QM
Reporting & Analytics | | micey1230 -
Main Website Redirects to Mobile Website, Mobile Website counts this as direct traffic, is there a way to tell what the source/medium is?
Hello, The situation is that someone is arriving on my main website https://www.example.com and being redirected to http://m.example.com. When this happens my analytics says that the traffic is all direct coming to my mobile site. However, I know people clicking on my google cpc, and some google organic users are hitting the main website and being redirected. Before we didn't have as good of a redirect on our main website so I could tell organic and cpc traffic coming in, now my main website has a huge drop in these categories because they are redirecting to mobile but I can't tell on my mobile how much traffic from each is going to the mobile site. Is there a way to fix this? Is it because my main website is https:// and mobile is a http:// (as I know that sometimes makes traffic direct) or is it a bigger problem that can't be resolved? Thanks
Reporting & Analytics | | oxfordseminars0 -
Google Analytics Page Metrics and Redirects
Hi All- Context: A site has been redesigned. Pages were renamed in the process. Problem: It's very hard to compare before and after metrics because the page URLs are not the same. Question: Anyone know how to do this in Google Analytics? I'm hoping there's some simple trick I just don't know about. D
Reporting & Analytics | | DonnaDuncan0 -
What type of links/redirect is Yahoo! using?
So I'm trying to figure out exactly what type redirect or hyperlinking Yahoo! is using on their article pages. For example:
Reporting & Analytics | | William.Lau
https://shopping.yahoo.com/blogs/fashionate/spring-clean-your-beauty-routine--10-tips-on-looking-fresh-this-season-000058218.html Hover over an external link, it shows you the ending URL. Right or left click it, it gives you a 302 redirect. When you actually left click it, it adds and "id" attribute, I assume for tracking. However, when you left click the the hyperlink, it no longer shows as a 302. I have limited working knowledge of web development techniques, so anyone with advance knowledge or have actually done this, it'd be helpful to understand this more.0 -
Setting up Goals in Analytics when no common 'order confirmation' type page
Hi I'm working on a project/client and have asked them for the common url that shows whenever user finishes the purchase process so i cant set it up as a Goal in GA so we can track conversions etc Since site is dynamically generated it does not have such a page. Dev are suggesting setting up a new goal, generate a URL and script and they will append to a similar call. Does this make sense/sound like it would work ? And is it quite easy to do that in Analytics ? Normally i just add a URL as a goal and jobs done, don't know about scripts etc ! Cheers Dan set up a new Goal and generate a URL and script and send that to us and we'll append this to a similar call we already did for this at your request originally
Reporting & Analytics | | Dan-Lawrence0 -
301 Redirect tracking
Hi All, I have a 301 redirect tracking issue. I have a domain, say www.123.co.uk and I have that domain 301 redirecting to www.abc.co.uk. Looking in analytics, I do not see any referral traffic sources for the redirect i.e. I do not see www.123.co.uk as a referral (and I know it does sent traffic). My question is - how can I implement a solution that will show referral traffic from www.123.co.uk to www.abc.co.uk as a referal in analytics? Hope that makes sense?
Reporting & Analytics | | Webrevolve0 -
How do I set up goals in analytics to track the sales funnel when several pages of the steps required to checkout have the same url?
I have found this in Google Analytic but it makes no sense to me - is there are better resource which explains how you do this step by step ( or a good video perhaps?) Identical URLs Across Multiple Steps In some situations, the URL does not change across a sequence of activity. For example, a sign-up process might have the following URL path: Step 1 (Sign Up): www.example.com/sign_up.cgi Step 2 (Accept Agreement): www.example.com/sign_up.cgi Step 3 (Finish): www.example.com/sign_up.cgi To track visitors' progress through a funnel with the same URL for each step, modify the tracking code to create a virtual URL for each step in the sequence that you want to track. For details on how to use this in your tracking code, see Virtual Pageviews in the _Asynchronous Migration Examples_guide, which shows how to do this in all versions of the tracking code. The following example shows how you might fabricate 3 URLs using the asynchronous tracking code: _gaq.push(['_trackPageview', '/funnel_G1/step1.html']); _gaq.push(['_trackPageview', '/funnel_G1/step2.html']); _gaq.push(['_trackPageview', '/funnel_G1/step3.html']); You would then define your funnel and goal URLs using the ones you created in the tracking code modifications.
Reporting & Analytics | | pookiepro0 -
301 redirects reduce traffic considerably
I recently identified an issue with our site whereby we had three different URL types for each article. As an example, we might have something like: /articles/my-article-name /articles/my-article-name.aspx /articles/My-Article-Name We've since taken action to address this by implement 301 redirects from the second and third formats to the first (so everything is without the .aspx extension and is in lower case). But the results have been disconcerting. Before the change, one of our articles receives 150 or so hits per day via the .aspx version. The other two existed but had very low traffic (1-3 per day). We decided the non .aspx and lowercase version was the version we wanted. Sure enough, when we introduced the 301 redirects on September 25th the traffic for the .aspx version just stopped (after a day) and the traffic for the non-.aspx version climbed. But not enough. After the change, the non-.aspx version is receiving about 60-70% of the traffic that we used to have on the .aspx version. So, instead of receiving 150 per day (to the .aspx version) we are receiving around 100 or so to the non-.aspx version. This pattern has occured across all our articles and, as a result, our site-wide traffic has dropped by about 40% or so. Since we are using 301 redirects I had assumed that the search engines would just update to reflect the non-.aspx version. I am sure I am missing something here. Any help would be most appreciated. Thanks. Mark
Reporting & Analytics | | MarkWill0