![]() |
Unable to parse variables in the URL - 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: Unable to parse variables in the URL (/showthread.php?tid=8665) |
Unable to parse variables in the URL - El Forum - 05-26-2008 [eluser]floweringmind88[/eluser] I have my htacces setup as follows: Options All -Indexes +FollowSymLinks RewriteEngine on RewriteCond $1 !^(index\.php|images|robots\.txt|images|css|xml) RewriteRule ^(.*)$ /varvee/index.php/$1 [QSA,L] This works fine for regular paths like: http://domain.com/varvee/browse_schools/ But if I try to pass a variable on the end it says it can't find the page: http://domain.com/varvee/browse_schools/?school=a If anyone can help me out I would greatly appreciate it. Thanks! Chris Unable to parse variables in the URL - El Forum - 05-26-2008 [eluser]Michael Wales[/eluser] CodeIgniter disables query strings - it doesn't appear as if you have enabled them, since your URL would be malformed. 2 options. 1) Just use a URL segment http://domain.com/varvee/browse_schools/a 2) Use query strings http://domain.com?c=varvee&m=browse_schools&school=a Check out config/config.php around line 130 for in the comments documenting this feature as well as http://ellislab.com/codeigniter/user-guide/general/urls.html. |