Welcome Guest, Not a member yet? Register   Sign In
Mix pretty urls with url params
#1

[eluser]louis w[/eluser]
I want to be able to do this: /admin/edit/page/28?foo=bar

This works /admin/edit/page/28, but it 404's when I add the params.

What am I missing?

UPDATE:
Just realized it works if i add another param, but doesn't when there is only one.
#2

[eluser]sikkle[/eluser]
do a search on the forum about uri string from config.php.

you'll be able to start from there.
#3

[eluser]louis w[/eluser]
I have enabled query strings in my config but it will only work if there is more then one variable in the uri.

Code:
$config['enable_query_strings'] = TRUE;
#4

[eluser]missionsix[/eluser]
you have to change the way CI reads the 'pretty url' part in config.php 'ORIG_PATH_INFO' worked for me on my server, dunno about others.
#5

[eluser]Mirage[/eluser]
Change your config for uri_protocol from auto to
Code:
$config['uri_protocol']    = "PATH_INFO";
#6

[eluser]louis w[/eluser]
Changing uri_protocol worked. Thanks guys.




Theme © iAndrew 2016 - Forum software by © MyBB