Forum Moderators: phranque
Can anyone suggest a htaccess code that should work?
The whole idea is that no end-users will be browsing our site without 'www', if they leave out the 'www' they will hit our origin server and will be redirected to
[mydomain.com...] , which will be cached and served over the CDN.
[mydomain.com...] -> 301 [mydomain.com...]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example\.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
[edited by: jdMorgan at 1:14 am (utc) on Sep. 23, 2005]
[edit reason] Sorry, edited post instead of answering it. [/edit]