Cannot redirect URL to proper function when using IIS 6 |
[eluser]ethereal1m[/eluser]
Dear all, I'm trying to redirecting using an URL that uses get method so that it fills up $_GET variable and redirects it to some class and function of a controller. But instead it redirects to a specified controller, it redirects to its home. This works using Apache but not in IIS6. Suppose the link is: Code: localhost/content/?id=5 routes.php has the following line Code: $route['content/:(any)']='some_class/some_function/$1'; Code: some_class/some_function/?id=5 Seems that IIS cannot parse Code: some_class/some_function/?id=5 Do I miss something? I'm using php5.1.4, IIS6 and MSSQL server 2003. IIS6 is using CGI to execute PHP. regards, ethereal1m
[eluser]gRoberts[/eluser]
try Code: $route['content/(:any)']='some_class/some_function/$1'; instead...
[eluser]ethereal1m[/eluser]
@gRoberts, I mistyped I did use Code: $route['content/(:any)']='some_class/some_function/$1'; Code: $route['content/:(any)']='some_class/some_function/$1'; any other ideas...?
[eluser]weboap[/eluser]
shouldn't your link be Code: some_class/some_function/5 if you are using Code: some_class/some_function/?id=5 Enabling Query Strings http://ellislab.com/codeigniter/user-gui.../urls.html the link if you do Code: http://localhost/some_class/some_function/5 should be Code: http://localhost/content/5 per your route. hope it help. |
Welcome Guest, Not a member yet? Register Sign In |