Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question How can i create subdomain?

    Basically, I want a new user that signs up to my website to have a homepage: username.domain.com
    as well as sub directories as: username.domain.com/journal

    If anyone knows, please let me know, I couldn't find the solution

  • #2
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts
    good articles:

    http://allyourtech.com/content/artic..._on_apache.php

    http://steinsoft.net/index.php?site=...wildcarddomain

    and if you were to have searches the forums.

    Dynamic Subdomains with PHP (Looking for working examples)

    you want information on Wildcard subdomains (i'm assuming your using an apache server).
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<

  • #3
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,092
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Do you have cPanel on your server? If so, it is very easy to setup a subdomain using that. If not, check with your web host. They may have a knowledge base that walks you through how to set one up on their server.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #4
    Senior Coder
    Join Date
    Apr 2005
    Posts
    1,051
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by vinyl-junkie
    Do you have cPanel on your server? If so, it is very easy to setup a subdomain using that. If not, check with your web host. They may have a knowledge base that walks you through how to set one up on their server.

    i think he wants wildcard subdomains - like if you want to run blog management or rent out space - instead of just creating http://mydomain.com/userPage/ he/she wants http://userPage.mydomain.com/

    the problem is not setting them up by hand ( i suspect ) it is generating them via a registration script or off a submission form (i.e via php)
    public string ConjunctionJunction(string words, string phrases, string clauses)
    {
    return (String)(words + phrases + clauses);
    }
    <--- Was I Helpfull? Let me know ---<


  •  

    Posting Permissions

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