View Single Post
Old 11-15-2009, 09:03 PM  
Killswitch - BANNED FOR LIFE
Guest
 
Posts: n/a
Quote:
Originally Posted by alias View Post
Try a full document url for the 404 /

eg:

ErrorDocument 404 /404.html

or you could use a full url
ErrorDocument 404 http://www.someserver.com/404.html
ErrorDocument doesn't effect it, it's the WWW redirection that isn't working properly or something.

Quote:
Originally Posted by JamesK View Post
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.
  Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote