Non-Existent Subdomains

raila

Verified User
Joined
Apr 9, 2011
Messages
11
Hi, i have hosting with address myhostaddress.com

And all my users have webs with userwebname.myhostaddress.com

If somesub.myhostaddress.com is not created this address show error:
Server not found

So...

I wanna not reserved subdomains show my created web with advertisement, is it possible? :)
 
Yes.

You can create a custom error page which is anything you want, or which directs to anything you want.

Jeff
 
OK, this might help you (they are mostly the same with the first link) to configure Aliases, and for your subdomain zzzz you can use:

1. change document root with mod_rewrite
2. Use a iframe/frameset
3. Use PHP script with something like this:

PHP:
<?php
require_once('../index.php');
?>

4. change document root in Apache settings

in order to show content of your primary web-site.
 
Back
Top