Results 1 to 5 of 5

Thread: add a sub domain?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    add a sub domain?

    Is there anyway i can add a sub domain through php, like i have a domain name say, www.mysite.co.uk redirected to my home server, well i want a subdomain.mysite.co.uk

    so in peusdo,

    header(location: subdomain.mysite.co.uk);

    which wouldn't make any sense as it would have to do a dns lookup for that url. Thing is i've registered a domain name but can't seem to add any subdomains for it, dont think they support it though not clear at all, no tech support for that section, so thought i could 'hack' one.
    ?

  2. #2
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: add a sub domain?

    You need to add the subdomain though host. You would need to speak to your host as there is no way to "hack" one onto your site.

  3. #3
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: add a sub domain?

    John, this can be done through PHP.
    Although, its not a great way to do it, I'll dig up an old script that I used to use:...
    http://www.aprelium.com/forum/viewtopic.php?t=1081
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  4. #4
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    Re: add a sub domain?

    That only works if the host is setup so *.domain.com points to your site. Most hosting I have seen only allow domain.com and www.domain.com to point and make you setup subdomains yourself.

  5. #5
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: add a sub domain?

    True, but I thought I would just throw it out there. As I use several domains, I used to use that script (until I discovered Apache xD).
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width