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
-
Tracking Sessions for 301 Re-Direct in Google Analytics
Trying to track clicks for individual slides on a homepage slider. I cannot enter UTM codes on the slide links, just choose from a dropdown containing pages on my site (WordPress). So, I set-up 301 re-directs for all the slides. /slide1-redirect
Reporting & Analytics | | jbernier
/slide-2-redirect etc.. Will these redirect pages show up in GA? I cannot see them. I'm trying to create a Dashboard for Homepage slider clicks. John0 -
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 -
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 -
How to not track mobile redirects in Google Analytics
If a user is on a mobile device and comes to our home page, http://www.darden.virginia.edu/web/Home/ they are redirected to http://m.darden.virginia.edu/web/Home/. We want a way to remove all the redirects from our Google analytics reports. More specifically we do not want to include the the page view of http://www.darden.virginia.edu/web/Home/ in our page view count when the user is on a mobile device. How do we do that?
Reporting & Analytics | | Darden0 -
Setting up goals - google analytics
Hi Im new user google analytics I would like to set up goal for website. I asked to basic questions: What are my bussiness objectives? Answer:make the visitor to click on a advertisment (affiliate links and affiliate banners) to be redirected to company website to finish purchase. How to set up goals? How can I track ads (affiliate banners and affiliate links) on my website?
Reporting & Analytics | | info_tipovanie-stavkovanie.com0 -
OSE shows URLs redirecting to our custom created error page, is this a problem?.
When I check the link metrics for my product pages in OSE, it shows a message saying that the page redirects to our custom error page. This page was recently created to display when there is an error with the website. Do I need to be concerned that OSE is seeing all product pages as redirecting to this error page? Will it affect page authority etc,? I have attached a screen shot of the message that OSE displays for reference. YWbpM.jpg
Reporting & Analytics | | pugh0 -
Setting up GA to report on sub domains
I've just launched a mobile version of my site at m.mydomain.com. I could do with a bit of help just checking I've inserted my Google Analytics code correctly though. I've chosen the sub domain option from settings and pasted the code into both the mobile and the non-mobile version of my sites. However, am I right in thinking that the setDomain attribute should point to two different domains for example: _gaq.push(['_setDomainName', 'm.mydomain.com']); (for the mobile site) and: _gaq.push(['_setDomainName', 'mydomain.com']); (for the standard site) Thanks very much for your help!
Reporting & Analytics | | theshortstack0 -
Tracking 301'd Domains
'ello SEOMozers 🙂 I've been implementing some awesomely search engine friendly 301'd domains for clients and they work great but I seem to have missed the point where I track said domains in some fashion and come here to ask the question --> how are you all tracking refers from 301'd domains that are pointed to your main hubs? Currently our practice in-house is to alias them in our servers then use .htaccess rules to 301 them to the 1 domain to-rule-them-all but Google Analytics doesn't recognize them as different domains with that plan of action and there goes my refer tracking. Is there a super-star way to use the Google URL Builder and combine that with the above plan of action or a better plan? Has anyone else implemented something else more awesome-er that could help a girl out? Much thanks and Happy Thursday!
Reporting & Analytics | | treefrogseo0