![]() |
|
|||||||
| Chit Chat Public Talk about any thing you want! This forum is public. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||||||
|
||||||||||||
|
Default page for Sub-Domains that do not exist
Im trying to sell sub-domains for a website. (I know... why... I have a good reason...) The problem is when you goto a sub-domain that has not been created in stead of saying ERROR or THIS SITE IS AVAILABLE it says HSPHERE Web Utilities...
Im told this is the default page for subdomains that have not been created. Ya but how do I change the default page to a page I can edit to say TO BUY ME CLICK HERE. I am using a shared IP Address, is that the problem? |
|
#2
|
||||
|
||||
|
ftp into it and replace it.
instead of ftp'ing into mydomain.com ftp into mysubdomain.mydomain.com its the index.html page |
|
#3
|
|||||||||||
|
|||||||||||
|
Yes, since its a shared IP, apache is setup to listen for yourdomain.com and www.yourdomain.com, but there is a wildcard DNS record for *.yourdomain.com pointing to that IP as well.
If you changed the a dedicated IP, then any subdomain would go to your main site, otherwise there's nothing you can do unless you add subdomains ![]() |
|
#4
|
||||
|
||||
|
oh duh. I guess I shouldn't reply to posts unless I have slept sometime recently.
yeah.. what bladesnitz said. or.. create a subdomain change it to a dedicated IP. Edit the index page to say whatever you want it to then recreate the wildcard dns for your main site to point to that dedicated IP. That will allow you to have your content at your main site at www.mydomain.com and mydomain.com whatever you want and anyone that trys to go to a subdomain that doesn't currently exist will be sent to your "buy this site" message. |
|
#5
|
||||||||||||
|
||||||||||||
|
I thought that the default page for sub domains that did not exist was
Windows - NT(your server number here) Unix - Webshell and mysql login page
__________________
goodbye idevaffiliate, you can kiss my @$* with your poor support and broken script, I am now using post affiliate pro 3 |
|
#6
|
|||||||||||
|
|||||||||||
|
/Unless your on a dedicated IP/
![]() |
|
#7
|
||||||||||||
|
||||||||||||
|
dont have a unix with a dedicated, but my windows dedicated ones just default to the sites home page.
__________________
goodbye idevaffiliate, you can kiss my @$* with your poor support and broken script, I am now using post affiliate pro 3 |
|
#8
|
||||||||||||
|
||||||||||||
|
Like everyone says, dedicated IP will make things so much easier. All you need to do, then, is have your default script page check the subdomain against your database of users (or whatever). Keep in mind that switching your IP might mean some website downtime as DNS propagates. Your mail and other servers should be fine, though.
|
|
#9
|
||||||||||||
|
||||||||||||
|
If you're willing to go ASP, you can rewrite a bit of some code I used for setting up affiliate pages. It would allow any subdomain (that's not already assigned) to be reassigned to either a directory or to set a querystring ID. In your case you would just change the "response.redirect" to go to a set page with the subdomain they came in on written to a querystring to customize the landing page.
http://forum.vortechhosting.com/show...99&postcount=2 If I have time this weekend I'll try it out for you, otherwise you should easily be able to fix it to fit your needs. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| to make index.php as default page | gmsi | Chit Chat Public | 7 | 11-28-2005 09:05 AM |