![]() |
redirecting subdomain traffic (404)
I have redirected all 404 traffic that my domains get using htaccess, but I noticed that nonexistant subdomains don't fall into the redirect
How can I redirect all incorrect subdomain traffic to a specific place? I need to figure out how to do it on windows and unix hosts. eg. I want alkdflds.gfy.com to redirect to gfy.com ....instead of saying 404 or actually in the case of one of my windows hosts it goes to a page that has one word "Voyager" |
good question...
I might need the very same thing... |
no one knows?
|
Google "wildcard dns"
|
RewriteEngine on
RewriteCond %{HTTP_HOST} !^juicy.com RewriteRule ^(.*)$ http://juicy.com/$1 [R=301] |
make sure you have the wildcard in your httpd.conf
|
you prob will need to have your host setup wildcard subdomains. i can walk you thru it if you have root access
|
go into var/named/ and locate a file called yourdomain.com.db
download it.. add *.yourdomain.com. IN A 63.163.66.182 save and upload then restart bind using your domains ip of course |
All times are GMT -7. The time now is 06:08 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc