Codeigniter, domain to a certain area of the site
After a lot of searching, I found a solution that seems to work, very easy to be honest:
Modify routes.php
:
if ($_SERVER['HTTP_HOST']=="www.domain2.com") { $route['default_controller'] = "area2"; }
No need for mod rewrite.
Here's a helpful link....http://www.askaboutphp.com/88/codeigniter-setting-up-multiple-sites-on-one-install.htmlNever actually done this myself, but this seems to be the way to go about it without having two ci installs. Good luck.