Controller as subdomain - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Controller as subdomain (/showthread.php?tid=30726) |
Controller as subdomain - El Forum - 05-24-2010 [eluser]TheIgniter[/eluser] Hi there, First of all, i thank the codeigniter's developpers for this great application! I want to know if it's possible to make the controller as a subdomain .. Like, Code: mysite.com/controller/method become controller.mysite.com/method. Best Regards, v1R. Controller as subdomain - El Forum - 05-24-2010 [eluser]pickupman[/eluser] This should work using .htaccess. You will need to create a rewrite for the hostname to match the subdomain and hostname. Rewrite controller.mysite.com/method to mysite.com/controller/method For the exact syntax look it up on google for some examples. |