Multidomain site

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pedja
    Senior Member
    • Mar 2004
    • 329

    #1

    Multidomain site

    I would like to set this:

    i have domain mydomain.com and if someone tried to connect to anything.domain.com i would like request to be forwarded to mydomain.com (that part may be done on dathorn server). Request should be passed to index.php which will distinguis actual requested domain and open contents in subdirectory of main domain.

    In example:

    user reguests subdomain.mydomain.com/contact.htm
    request is forwarded to mydomain/index.php
    index.php see's that actual request was for subdomain.mydomain.com/contact.htm so it reads contents of /subdomain/contact.php and sends it to the user.

    subdomain.mydomain.com would be single or twopage site, only static html with soma image links, nothing more.

    Well, before i starte wiriting on script I would like to know if there is something that actualy works this way?
  • AndrewT
    Administrator
    • Mar 2004
    • 3655

    #2
    We can enable the wildcard subdomains on the domain for you, simply submit a trouble ticket requesting it. You will have to write the script though, but it isn't very difficult.

    Comment

    • Pedja
      Senior Member
      • Mar 2004
      • 329

      #3
      Yes I know. I have an ideas how to make script work, just guessing there is something already done.

      Another question, is it possible to achieve this using mod rewrite?

      Basicaly, I want to set that requests to http://subdomain.mydomain.com/contact.htm open document located at mydomain.com/subdomain/contact.htm

      Comment

      Working...