Welcome Guest, Not a member yet? Register   Sign In
Problem with query strings
#1

[eluser]x3cu73[/eluser]
Hi,

I'm having problems using query strings

http://somedomain.com/controller_name/ works fine

but

http://somedomain.com/controller_name?a=1&b=2 give 404 error, page not found

It works when I use

http://somedomain.com/index.php/controller_name?a=1&b=2

query strings are enabled in config.php
#2

[eluser]Atharva[/eluser]
You have to use .htaccess to remove index.php from url. Have you done that?
#3

[eluser]Cristian Gilè[/eluser]
Hi x3cu73,

Code:
$config['uri_protocol'] = 'PATH_INFO';
...
...
$config['enable_query_strings'] = TRUE;

Remember that, unless you are using .htaccess to remove index.php from url, this file is mandatory.

Cristian Gilè




Theme © iAndrew 2016 - Forum software by © MyBB