![]() |
How to route with PATH_INFO - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: How to route with PATH_INFO (/showthread.php?tid=40155) |
How to route with PATH_INFO - El Forum - 03-31-2011 [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! How to route with PATH_INFO - El Forum - 04-04-2011 [eluser]Jozomannen[/eluser] Bumping this one, please help! ![]() How to route with PATH_INFO - El Forum - 04-04-2011 [eluser]n0xie[/eluser] What does your .htaccess look like? Also try setting enable_query_strings to FALSE. How to route with PATH_INFO - El Forum - 04-19-2011 [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? How to route with PATH_INFO - El Forum - 04-20-2011 [eluser]n0xie[/eluser] Did you take a look at the lighttpd docs? |