|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
L.S.
Recently I came across a site http://www.startpagina.nl (sorry it's dutch). It doesn't matter what subdomain I enter I always end up at the main site. example : http://abcdefg.startpagina.nl How do they do this ?? Anybody an idea ? Gaafgassie |
|
#2
|
|||
|
|||
|
Within the header of http://abcdefg.startpagina.nl is a pointer to http://www.startpagina.nl.
If the above was coded in php http://abcdefg.startpagina.nl would look like this: <?php Header("Location: http://www.startpagina.nl "); ?> Andy J [This message has been edited by eaamj01 (edited October 11, 2000).] |
|
#3
|
|||
|
|||
|
It's done in the DNS server. It's just a wildcard so that any non-defined 3rd level points to www.
|
|
#4
|
|||
|
|||
|
Can this be done with M$-DNS ??
(yes , my company uses it and it's not my choice) Gaafgassie |
|
#5
|
|||
|
|||
|
I do the same thing at my site with the following Apache directive:
DirectoryIndex index.php index.htm index.html /index.php The last entry uses my top-level index page if the others do not exist. ------------------ Chris Norcross http://www.betasector.com chris@betasector.com |
![]() |
| Viewing: Dev Shed Forums > Other > Beginner Programming > subdomain /DNS |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|