$config['enable_query_strings'] adding "?" to my URL - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: $config['enable_query_strings'] adding "?" to my URL (/showthread.php?tid=53186) |
$config['enable_query_strings'] adding "?" to my URL - El Forum - 07-13-2012 [eluser]ibnclaudius[/eluser] When I set $config['enable_query_strings'] to TRUE, it adds "?" to my URLs, for example: http://localhost/bloompit/entrar http://localhost/bloompit/?entrar http://localhost/bloompit/entrar?next=http://localhost/bloompit/another-title http://localhost/bloompit/?entrar?next=http://localhost/bloompit/?another-title How can I fix it? $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-13-2012 [eluser]InsiteFX[/eluser] Turn off enable_query_strings $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-13-2012 [eluser]ibnclaudius[/eluser] But I need it because I'm using facebook-php-sdk. $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-13-2012 [eluser]InsiteFX[/eluser] Add this - ./application/config/config.php. Code: $config['permitted_uri_chars'] = 'a-z 0-9~%?=&.:_\-'; Add this - ./application/core/MY_Input. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); Add this ./ .htaccess. Code: php_value default_charset utf-8 $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-14-2012 [eluser]ibnclaudius[/eluser] The problem persists, still adding "?" to my URLs. ./application/config/config.php Code: $config['permitted_uri_chars'] = 'a-z 0-9~%?=&.:_\-@'; ./application/core/MY_Input Code: <?php ./.htacces Code: php_value default_charset utf-8 $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-14-2012 [eluser]InsiteFX[/eluser] Turn off enable_query_strings, you do not need it with the code I gave you above. And use REQUEST_URI Protocol. $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-14-2012 [eluser]ibnclaudius[/eluser] Thanks! $config['enable_query_strings'] adding "?" to my URL - El Forum - 07-14-2012 [eluser]InsiteFX[/eluser] I bought the CodeCanyon EasyMenu system and converted it to CI and that was how I ended up getting it to work after changing all the javascript url's. This letsme use drag and drop menu position changing in my backend dashboard. Use CI's input->post and input->get EasyMenu Took me about two weeks to get it to work right LOL |