Make sure it is lowercase also.

www.Mydomain.com
www.mydomain.com
www.MyDomain.com
 
are three different sites!


-----Original Message-----
From: Russ Michaels [mailto:r...@michaels.me.uk] 
Sent: Wednesday, January 19, 2011 2:53 PM
To: cf-talk
Subject: Re: CF Permanent Redirect (301)???


having multiple domains pointing to the same site has some issues.

It is not seo friendly and supposedly effects rankings.
It will skew your webstats as they usually only show data for the primary
domain, not alias, so u will see traffic for www.mydomain.com not
mydomain.com

If you have any code in your code that depend son the host name, you also
have to cater for all the alternatives.
The recommended method is to redirect anything that is not
www.mydoamin.comto www.mydomain.com, most people do this with url rewriting.

e.g.

# RULE NAME: Redirect non-www website to www #
(http://bluethunderinternet.com to http://www.bluethunderinternet.com)

RewriteEngine on

RewriteCond %{HTTPS} (on)?
RewriteCond %{HTTP:Host} ^(?!www\.)(.+)$ [NC] RewriteCond %{REQUEST_URI}
(.+) RewriteRule .? http(?%1s)://www.%2%3 [R=301]


--

Russ Michaels

www.bluethunderinternet.com  : Business hosting services & solutions
www.cfmldeveloper.com        : ColdFusion developer community
www.michaels.me.uk           : my blog
www.cfsearch.com             : ColdFusion search engine
**
*skype me*                     : russmichaels




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:341057
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to