Thread
:
How do you redirect all 404 requests to a specific page, regardless of the subdomain?
View Single Post
05-14-2007, 01:57 PM
Myst
Confirmed User
Join Date: Feb 2004
Location: Alberta, Canada
Posts: 4,707
Quote:
Originally Posted by
chris01282
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
View Public Profile
Find More Posts by Myst