CodeIgniter Forums
Need help on SubDomain Redirecion - 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: Need help on SubDomain Redirecion (/showthread.php?tid=11381)



Need help on SubDomain Redirecion - 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 SubDomain Redirecion - El Forum - 09-06-2008

[eluser]Sarfaraz Momin[/eluser]
It does not make sense to double post the same thing under different sections. Admin please remove this post as duplicate as I have already provided the solution for this same question which was double posted.