• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
regular expression trouble...

#1
[eluser]danoph[/eluser]
i am trying to route URLS such as http://localhost/contact to http://localhost/home/contact UNLESS $1 is sell or store using the following route. http://localhost/sell and http://localhost/store link to the right controllers, but if the method isn't one of those two, I get a 404 error. I am obviously doing this wrong. Can anyone help me out?

$route['!^(sell|store)'] = "home/$1";


Messages In This Thread
regular expression trouble... - by El Forum - 07-18-2007, 01:24 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:19 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:19 PM
regular expression trouble... - by El Forum - 07-18-2007, 02:23 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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