Welcome Guest, Not a member yet? Register   Sign In
Need help on SubDomain Redirecion
#1

[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
#2

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




Theme © iAndrew 2016 - Forum software by © MyBB