Problem with regex and uri |
[eluser]Mareshal[/eluser]
This is what I want to do: If I type http://localhost/domain.com => output domain.com If I type http://localhost/domain.com/second_uri => generate error page(not 404 not found from ci). I don't want it to search and try to call "domain.com" controller If I type http://localhost/controller/method => load my controller etc Here are my methods from "main" controller: Code: function index(){ ... and modified routes: Code: $route['[a-zA-Z0-9\-\.]+\.(com|org|net|COM|ORG|NET)'] = "main/domain/$1"; Any ideas? Is emergency |
Welcome Guest, Not a member yet? Register Sign In |