Web Hosting Talk







View Full Version : Subdomain Scripts


digiclipse
10-08-2001, 11:45 AM
I was told by my provider that subdomains were possible if I obtained and installed the correct scripts so I am assuming that my host provides me access to all the areas required for setting up such a script but I really have no clue where to start looking or how to install it. Does anyone know a free subdomain script I can use or a method to make subdomains?

Synergy
10-08-2001, 12:08 PM
Your provider should let you create subdomains automatically.... No scripts are needed.

digiclipse
10-08-2001, 12:25 PM
I am with tera-byte.com. I'm used to being with a host that just has subdomains in their control panel but this one doesn't I asked the sales guy upon signing up if they did provide any and he said yes they wildcard their DNS thus I could install a script that would make subdomains possible..

Synergy
10-08-2001, 01:29 PM
Drop me a mail at andy@aphosting.com

I assume that you are on one of their raqs and thats why you can't add it without a script. I'm searching my history and I remember there is a script....

By the time you email me, I think I should have found the script.

JustinK
10-08-2001, 01:29 PM
Ahhh that means *.yourdomain.com just goes to the index for yourdomain.com and if you make that the script then it will direct the user to the correct files. Someone else here might know the non-script way around it (never had wildcard dns so I never got to learn it), but try going to hotscripts.com and doing a search for redirect and wildcard.

Synergy
10-08-2001, 01:36 PM
do you have access to dns zone editing?

Dexter
10-08-2001, 01:59 PM
this script called virtual redirect works very nicely :)

http://www.bsnr.net/freescripts/#virtualredirect

Mac Write
10-08-2001, 11:32 PM
Cool just tried that.

A simple and easy way to do it (and I am completely new to PHP). is do a PHP script (in your index page at the top) that says

if $HTTP_REFERER=httt://www.subdomain.yourdomain.com Redirect http://www.yourdomain.com/someplace

Can someone please give the coded neededto be inserted into the index page to do that? thankx