Welcome Guest, Not a member yet? Register   Sign In
how to control URI router ON or OFF?
#1

[eluser]RING[/eluser]
i set router in /app…/config/routes.php
Code:
$route['member(.*)'] = "member$1";
$route['(.*)'] = "home/$1";

my website bind 2 domain-name :
domainA.com
domainB.com

when people visit my website by domainA.com,
i want the router worksSadrouter setting ON)
http://domainA.com/someword ---> class :home , methodConfusedomeword()

and,when people visit my website by domainB.com,
i want the router DO NOT workSadrouter setting OFF)
http://domainB.com/someword ---> class Confusedomeword , method:index()


is it impossible ?


Messages In This Thread
how to control URI router ON or OFF? - by El Forum - 03-10-2009, 07:03 AM
how to control URI router ON or OFF? - by El Forum - 03-10-2009, 07:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB