'anchor' works only with index.php included in 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: 'anchor' works only with index.php included in url? (/showthread.php?tid=6534) |
'anchor' works only with index.php included in url? - El Forum - 03-03-2008 [eluser]jude[/eluser] I have suppressed the 'index.php' file in my application. The url helper 'anchor' does not seem to work with this configuration. I get a url like this (base url)/ /(segments) Is there a way to remove the ' ' ? 'anchor' works only with index.php included in url? - El Forum - 03-03-2008 [eluser]jude[/eluser] In the above code, note that there is a percentage and a '20' between the two brackets 'anchor' works only with index.php included in url? - El Forum - 03-03-2008 [eluser]Armchair Samurai[/eluser] In config.php, make sure that you haven't accidentally put a space when setting $config['index_page'] - that sounds like the most likely culprit. If you find that there is still a problem, there's probably an issue with your .htaccess file. 'anchor' works only with index.php included in url? - El Forum - 03-03-2008 [eluser]jude[/eluser] You're dead right, AS, there was that awful space in my config file. Thanks a million |