Welcome Guest, Not a member yet? Register   Sign In
Cannot redirect URL to proper function when using IIS 6
#1

[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
which making the link to execute get method and set variable "id" with value equal to 5 and put them into $_GET variable.

routes.php has the following line
Code:
$route['content/:(any)']='some_class/some_function/$1';
which routing the link into execution of some_function of some_class with input of 5, so that it should reroute into:
Code:
some_class/some_function/?id=5
but it doesn't, it routes to default home address instead.

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


Messages In This Thread
Cannot redirect URL to proper function when using IIS 6 - by El Forum - 05-15-2012, 12:29 AM
Cannot redirect URL to proper function when using IIS 6 - by El Forum - 05-15-2012, 04:15 AM
Cannot redirect URL to proper function when using IIS 6 - by El Forum - 05-15-2012, 07:34 PM
Cannot redirect URL to proper function when using IIS 6 - by El Forum - 05-15-2012, 09:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB