Updated to CI 2.1 and now got problems with the anchor function - 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: Updated to CI 2.1 and now got problems with the anchor function (/showthread.php?tid=52370) Pages:
1
2
|
Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-07-2012 [eluser]Freewolf[/eluser] Hey all, Using the anchor() function in a few spots on my site. And after updating (finally) from CI 1.7.2 to 2.1 I am getting a ?/ after the base url. (IE http://www.someplace.edu/?/snazzy_link/) What am I missing the change to the newer CI? This is happening any that I am using the anchor() function. Did I miss a change in the .htaccess file? I am not using the index.php. Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-07-2012 [eluser]CroNiX[/eluser] what's your htaccess look like? What's your uri_protocol set to? Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-07-2012 [eluser]Abel A.[/eluser] You have to set query strings to false in your config. Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]Freewolf[/eluser] The .htaccess looks like Code: #When your application folder isn't in the system folder Thanks for any help. Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]Freewolf[/eluser] Hey Berk, That would work however, we do in fact need query strings available as well on our site. Any other options? Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]InsiteFX[/eluser] You do not need the top stuff, CodeIgniter now has an .htaccess file in the directories. Code: #Checks to see if the user is attempting to access a valid file, Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]Freewolf[/eluser] Thanks Insite, That unfortunately did not help with the ?/ after the domain problem with the anchor function. Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]InsiteFX[/eluser] Did you enable query strings in your ./application/config/config.php ? Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]Freewolf[/eluser] Yea used that code in the .htaccess file and enabled query strings. I still get ?/ right after the domain when using the anchor function. Updated to CI 2.1 and now got problems with the anchor function - El Forum - 06-08-2012 [eluser]CroNiX[/eluser] Did you try changing the uri_protocol? Try "query_string" and if that doesn't work try the others available. |