Quote:
Originally Posted by alias
|
ErrorDocument doesn't effect it, it's the WWW redirection that isn't working properly or something.
Quote:
Originally Posted by JamesK
This is my non-www to www redirection code. Might be of use.
Code:
#WWW Redirect
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]
|
Mine is the same as yours, except I use regex in mine so I don't have to edit it and can just upload the same .htaccess file to any new site I create without editing anything, which is what I want, since my framework doesn't need anything different. Works for any domain with .com/net/org.