View Single Post
Old 05-14-2007, 01:57 PM  
Myst
Confirmed User
 
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
Quote:
Originally Posted by chris01282 View Post
RewriteEngine On
ErrorDocument 400 http://www.domain.com/404.html
ErrorDocument 401 http://www.domain.com/404.html
ErrorDocument 403 http://www.domain.com/404.html
ErrorDocument 404 http://www.domain.com/404.html
ErrorDocument 500 http://www.domain.com/404.html
ErrorDocument 501 http://www.domain.com/404.html
ErrorDocument 503 http://www.domain.com/404.html


copy this to a text file in the root of all domains/sub domains that you want to redirect 404 traffic from and rename it to .htaccess

or do the same and just use the "ErrorDocument 404" line from above

that should do it, or someone here will correct me
I tried it but it wont redirect all subdomains too..
domain.com/* -> 404.html works
*.domain.com/ -> doesnt
__________________
ICQ: 298-523-037
Myst is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote