GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   redirecting subdomain traffic (404) (https://gfy.com/showthread.php?t=768979)

d-null 09-15-2007 01:50 PM

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"

HomerSimpson 09-15-2007 01:55 PM

good question...
I might need the very same thing...

d-null 09-18-2007 06:48 PM

no one knows?

Lycanthrope 09-18-2007 06:51 PM

Google "wildcard dns"

Juicy D. Links 09-18-2007 06:52 PM

RewriteEngine on
RewriteCond %{HTTP_HOST} !^juicy.com
RewriteRule ^(.*)$ http://juicy.com/$1 [R=301]

fris 09-18-2007 08:06 PM

make sure you have the wildcard in your httpd.conf

SmokeyTheBear 09-18-2007 08:18 PM

you prob will need to have your host setup wildcard subdomains. i can walk you thru it if you have root access

SmokeyTheBear 09-18-2007 08:43 PM

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