How to implement dynamic subdomains in codeigniter with .htaccess?

前端 未结 3 561
盖世英雄少女心
盖世英雄少女心 2020-12-23 23:46

How can I implement dynamic subdomains in codeigniter with .htaccess?

3条回答
  •  礼貌的吻别
    2020-12-24 00:29

    This rule handles the subdomains

    RewriteCond %{HTTP_HOST} ^([a-z0-9]+).yoursite.com.  should probably also include the hypen -.  RewriteCond %{HTTP_HOST} ^([a-z0-9-]+).yoursite.com.
    

提交回复
热议问题