Virtual Subdomains

    Date: 04/25/05 (PHP Community)    Keywords: php, web, hosting

    Hello,

    I'm not sure if this question has come by before, but I was wondering if I could get some help creating virtual subdomains. I've searched everywhere over the Internet and have tried most things I've come accross but nothing seems to work.
    Also I have contacted my hosting support who, I think, don't have a clue in how to do it. They also say that virtual subdomains are enabled but to create them you have to go through cPanel and a problem with this also is that it creates a directory in the root folder.
    I'm just wondering if I would be able to get some sort of virtual subdomain automation. So as soon as a user signs up, they are able to access their page at "http://[username].website.com".
    And also being redirected to their page internally like what mod_rewrite does.

    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^(.*)$ /journal\.php?action=view&user=[username] [L]

    Something like that. But of course, the above example won't work.
    Just wondering if anyone had any ideas or could help me get something working.

    Thank you.

    Source: http://www.livejournal.com/community/php/291208.html

« Trailing slash || Book recommendations? »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home