How to implement dynamic subdomains in codeigniter with .htaccess?
问题 How can I implement dynamic subdomains in codeigniter with .htaccess ? 回答1: Make sure that subdomains are enabled on your site. When you enter test.yoursite.com it should take you to the welcome page of your site. If instead it gives DNS lookup error then it means subdomains is not enabled on your site. To enable subdomains on your site add *.yoursite.com entry to the DNS Zone records. Second insert the following code in your .htaccess file and replace yoursite appropriately. <IfModule mod