Welcome Guest, Not a member yet? Register   Sign In
How to route with PATH_INFO
#1

[eluser]Jozomannen[/eluser]
I'm trying to get $_GET-variables to work (to track AdWords).

I've done lots of reading here on the board, and everyone suggest to change uri_protocol from AUTO to PATH_INFO, but problem is that my subpages stop work then.

I now have:
$config['uri_protocol'] = "AUTO";
$config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-\?=';
$config['enable_query_strings'] = TRUE;


Problem is that none of my sub pages are working when I change uri_protocol to PATH_INFO, whatever URL I'm using, the content of the frontpage are being shown.

Here's how my routes.php looks like:
$route['default_controller'] = "home";
$route['scaffolding_trigger'] = "";
$route['go'] = "home/go";
$route['partners/(.*)'] = "partners/page/$1";


So if I visit:
http://www.site.com/parters/
The frontpage are being shown.


Any ideas?


Thanks in advance!
#2

[eluser]Jozomannen[/eluser]
Bumping this one, please help! Smile
#3

[eluser]n0xie[/eluser]
What does your .htaccess look like?

Also try setting enable_query_strings to FALSE.
#4

[eluser]Jozomannen[/eluser]
Thanks for your reply, Ive tried that, but it's not working, so I assume it's the .htaccess.

Problem is that the site is hosted with a lighthttpd solution, so there arent any .htaccess, there are some other system for URL rewriting though.

Any ideas if and how this works with lighthttpd instead of apache?
#5

[eluser]n0xie[/eluser]
Did you take a look at the lighttpd docs?




Theme © iAndrew 2016 - Forum software by © MyBB