Need help on Subdomains - 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: Need help on Subdomains (/showthread.php?tid=11382) |
Need help on Subdomains - El Forum - 09-06-2008 [eluser]abhigudi[/eluser] Dear All I have a problem with redirecting and assigning subdomain value,require community help. Ex : I have a domain “sample.com”, now i have a CI application runs perfectly fine, need to get “london.sample.com” and “paris.sample.com” both subdomains would have same operations but only difference being it loads the respective City data. How should i go about with it Should i create subdomains and load full CI app onto it or is there a way to work on the routes.php and combination of .htaccess where it allows me to have One CI application but a level of .htaccess to control my subdomains through and controller with CI. In simple terms : i have same View/Model/Controller only difference being the city data loaded from DB, how could this be solved? Pretty confused here, would need some help Need help on Subdomains - El Forum - 09-06-2008 [eluser]Sarfaraz Momin[/eluser] I really do not know if you have looked anywhere in the forum because there is atleast 5 such posts where I have answered with the solution. I would just refer you with one of the latest one I did. http://ellislab.com/forums/viewthread/89424/ P.S: Please look in the forum before posting it would surely help you save time. Have a good day !!! |