• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Need help on Subdomains

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

[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.


P.S: Please look in the forum before posting it would surely help you save time.

Have a good day !!!

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.