![]() |
Subdomain to load controller - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Subdomain to load controller (/showthread.php?tid=47856) |
Subdomain to load controller - El Forum - 12-25-2011 [eluser]devastator[/eluser] Hello and Merry Christmans to all. I want to make this url subdomain.mysite.com to opens mysite.com/controller/ How to make it? I try this but i have 500 error ... RewriteCond %{HTTP_HOST} subdomain.mysite.com RewriteCond %{REQUEST_URI} subdomain.mysite.com RewriteRule ^(.*)$ index.php/controller/$1 [L] and this RewriteCond %{HTTP_HOST} ^subdomain.mysite.com RewriteRule ^(.*)$ index.php?/controller/$1 [L] |