开发者

CodeIgniter 2.0 upgrade - now links have "?" appended

开发者 https://www.devze.com 2023-02-09 15:14 出处:网络
I upgraded CI from 1.7.2 to 2.0.It\'s \"mostly\" working, except all the links that are g开发者_StackOverflow社区enerated are putting a \"?\" after the base URL, but before the rest of the URL.

I upgraded CI from 1.7.2 to 2.0. It's "mostly" working, except all the links that are g开发者_StackOverflow社区enerated are putting a "?" after the base URL, but before the rest of the URL.

So what should be:

www.site.com/aController

Is being generated like:

www.site.com/?aController

Anyone know how to solve this issue?

Thanks, Steve


Set $config['enable_query_strings'] to FALSE in config.php.

This is covered along with all other random snags in my article:

http://philsturgeon.co.uk/news/2010/05/upgrading-to-codeigniter-2.0

0

精彩评论

暂无评论...
验证码 换一张
取 消