how to control URI router ON or OFF? |
[eluser]RING[/eluser]
i set router in /app…/config/routes.php Code: $route['member(.*)'] = "member$1"; my website bind 2 domain-name : domainA.com domainB.com when people visit my website by domainA.com, i want the router works ![]() http://domainA.com/someword ---> class :home , method ![]() and,when people visit my website by domainB.com, i want the router DO NOT work ![]() http://domainB.com/someword ---> class ![]() is it impossible ?
[eluser]TheFuzzy0ne[/eluser]
Yes, that would be possible. You could add some logic to the routes.php file that will only add your routes if the domain matches the one you specify. |
Welcome Guest, Not a member yet? Register Sign In |