How to create a subdomain with username as subdomain name?

前端 未结 3 426
别那么骄傲
别那么骄傲 2020-12-24 09:54

I have referred other related question but they are not clear to me. Please explain me: How can I make subdomain in PHP?

Example :

http://www.domainn         


        
3条回答
  •  醉酒成梦
    2020-12-24 10:37

    my way:
    you will have to create a wildcard subdomain and point it you your domain.

    http://www.easymodrewrite.com/example-subdomains

    Then you can parse $_SERVER['HTTP_HOST'] for querying out the user name .

    if you are under hosting plane, you can probably create it from the GUI.
    Else, you need to via the APACHE panel and configure the DNS.

提交回复
热议问题