Web Hosting Talk







View Full Version : Auto redirect subdomains?


Johnburk
11-19-2005, 05:55 AM
For one of my sites I let users have a subdomain. This was done automaticly and thus I no longer know all the subdomains.

Now that I am on a new sever, all subdomains are deleted. Yet alot of sites and search engines link to the subdomains.

How can all radom subdomains be redirected to the main domain?

Sohan
11-19-2005, 07:11 AM
Make a 404 page with a redirect url?

Johnburk
11-19-2005, 07:33 AM
I have already done that, and I have also added wildcard to my DNS.

But it doens't help

404 redirects only the main domain, and ally pages after the maildoman (maindomain.com/random)

The wildcard redirects random subdomains to the main host IP. That has a standard cPanel message "There is no website configured at this address."

Googled
11-22-2005, 01:51 PM
There's a post talking about it in another forum.

Here's the link:

http://forums.digitalpoint.com/showthread.php?t=33868

Best luck.

G