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
-
Redirect to one domain to another domain
Hii
Reporting & Analytics | | John_smith45
I'm john. I am a blogger. I want to change my domain. This is my domain (https://playfireboywatergirl.com/)
I want to redirect to the **.org **domain. But I work hard on my site .com and also the authority of my site in Google. Kindly help how can I redirect from one domain to another. can google convert authority of my to another site?0 -
Is it possible to set up one of the Goal Conversions on Google Analytics for a different site?
We are in the process of a website migration and need to set up the conversions for the new site. What is the most effective way of doing this?
Reporting & Analytics | | Sable_Group0 -
How to set goal in Google Analytics that required specific page
So our company has new page that has just implemented (let say "page x" --> not a landing page) and we want to see how many visitors that through "page x " convert into the goal (let say "page y"). If I just make the goal destination like "/page y" the goal number that appear is ALL the visitors who reach "page y" (through or not through "page x"), so how I set the goal setting to only show the visitors who reach "page y" through "page x" ? Thank you
Reporting & Analytics | | ddspg0 -
How can I redirect incoming links from an old version of my site ending in .ctlg and .ivnu?
My original site was published in 2001 using "version 2" software from Ivenue, the hosting company that I signed up with at that time. The site's structure was built in such a way that the primary category pages ended in the extension .ivnu. Product or item pages on the shopping cart side ended in the extension .ctlg. My site's name was and is [Lamplight Feather, Inc.](<a class="webkit-html-attribute-value webkit-html-external-link" href="http://www.tonyhill.net/" target="_blank">http://www.tonyhill.net/</a>). We built our business between 2001 and 2011 and by the last three years (2009 - 2011) of using their version two were averaging a million dollars per year in gross sales. We decided to "upgrade" to Ivenue's "version 3" in 2011 to take advantage of some more modern options and because their newer software created web pages ending in .html which we thought more desirable. We made the switch in late 2011. But it was a disaster. Traffic and sales dropped precipitously. For the past two years (2012-2013) our annual gross sales average dropped to $400,000. (Two other factors were involved beside losing the many incoming links and link juice we had built up over the years: Panda came in that fall and my little niche market (decorative feathers) was flooded with competitors.) However as I try to rebuild our traffic and business little by little, I am stumped as to how to redirect the many incoming links that went to our first site's .ivnu and .ctlg pages. I have constructed redirects for some of our current but changed .html pages like this and put them in the file cabinet and they work: For (example): http://www.tonyhill.net/feathers_c384589.html then But trying the same thing for (example) http://www.tonyhill.net/craftfeathers.ivnu still returns a 404. Is there something I am missing. Ivenue is useless in this matter by the way. Their "technicians" are no help. I plan to be migrating my site once again to a new hosting company and hope to solve this problem before then. Thanks for the attention, Tony Hill This is an example from Google Webmaster of the type of links that show up as 404's that I would like to redirect: | URL: | http://www.tonyhill.net/productCat96521.ctlg | | | Error details | Linked from | | <colgroup><col></colgroup>
Reporting & Analytics | | featherman
| http://www.tonyhill.net/productCat43986.ctlg |
| http://forum.muppetcentral.com/showthread.php?t=21416&page=2 |
| http://www.cosplay.com/showthread.php?p=3832751 |
| http://forum.muppetcentral.com/showthread.php?t=21416&page=2&highlight=fur |
| http://www.muppetcentral.com/forum/threads/puppeteers-resources-links.19330/page-2 |
| http://www.muppetcentral.com/forum/threads/how-do-you-like-my-puppets.18549/page-2 | | | | |0 -
Problem setting up new view in Analytics
Hi, I'm having problems finding where to set up a new view in Analytics. I have seen https://support.google.com/analytics/answer/1009714?hl=en but get lost at point 3 (In the View column, click the menu, then click Create new view.) In the menu there is no option that I can see. If I go into the one view that is set up, I also can't see anything 'View Settings' that would allow me to copy the view and then modify it. Am I missing something? Thanks
Reporting & Analytics | | Houses0 -
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 -
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 -
Setting up Analytics on a Site that Uses Frames For Some Content
I work with a real estate agent and he uses strings from another tool to populate the listings on his site. In an attempt to be able to track traffic to both the framed pages and the non-framed pages he has two sets of analytics code on his site - one inside the frame and one for the regular part of the site. (there's also a third that the company who hosts his site and provides all these other tools put on his site - but I don't think that's really important to this conversation). Not only is it confusing looking at the analytics data, his bounce rate is down right unmanageable. As soon as anyone clicks on any of the listings they've bounced away. Here's a page - all of those listings below " Here are the most recent Toronto Beaches Real Estate Listings" are part of a frame. http://eastendtorontohomes.com/toronto-beach-real-estate-search/ I'm not really sure what to do about it or how to deal with it? Anyone out there got any good advice? And just in case you're wondering there aren't any other options - apart from spending thousands to build his own database thingie. We've thought about that (as other agents in the city have done that), but just aren't sure it's worth it. And, quite frankly he doesn't want to spend the money.
Reporting & Analytics | | annasus0