codeigniter-multidomain |
[eluser]Unknown[/eluser]
codeigniter-multidomain is a simple replacement implementation of the Router class, allowing you to match against domain names in addition to the already-present pathnames. This will not be backwards-compatible with your existing config/router.php It allows you to, for example, have a http://www.example.com public site and an http://admin.example.com admin site, in the same application rather than having to deal with separate applications and keeping models, helpers and libraries in sync. Developed by Cameron Turner ([email protected]) Released under a simplified BSD license - see source code files for details. http://github.com/kladiin/codeigniter-multidomain
[eluser]umefarooq[/eluser]
hi no need to modify so much files only modify config file will work for all sub domains try this code only in config file Code: if(isset($_SERVER['HTTP_HOST'])) for more information read this article http://philsturgeon.co.uk/news/2009/06/H...ter-Set-up
[eluser]Unknown[/eluser]
umefarooq: That works if you have the same code for several different sites, and only the databases change. For example, you could run a CMS on example.com, example2.com... with a different database for each of them, but all sites use the same controllers and routes. My system allows you to use different controllers for each site. So, I can have www.example.com running a CMS, and forum.example.com running a forum - both sites use different controllers and routes, but within the same application, so using the same database, users, sessions, libraries, helpers, and everything else. Hope this clears things up, Cameron |
Welcome Guest, Not a member yet? Register Sign In |