![]() |
index.php being written out of URLs - 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: index.php being written out of URLs (/showthread.php?tid=42311) |
index.php being written out of URLs - El Forum - 06-03-2011 [eluser]Unknown[/eluser] Hey all, Bit of a curious problem this - never encountered anything like it before. It would appear that codeigniter is rewriting my URLs, removing index.php, even though I've specified the index page in the config. First thought was that it might be a stray .htaccess file in my root but after renaming it the problem is still occurring. The relevant part of my config file: Code: <?php Am I right in thinking that the config above should generate URLs like: Code: localhost/baby-cow/index.php/site/latest_episode/ Currently it does them like this: Code: localhost/baby-cow/site/latest_episode/ However, if you put the index.php in manually it works fine. My Apache logs have this error: Code: [Fri Jun 03 08:30:15 2011] [error] [client 127.0.0.1] File does not exist: C:/wamp/www/baby-cow/site, referer: localhost/baby-cow/ Furthermore, if I add my .htaccess back in but don't remove index page from the config it still generates URLs like: Code: localhost/baby-cow/site/latest_episode/ Can anyone shed some light on my situation? (removed http:// from urls because your spam filter was stopping me from posting) Many thanks, Ralph index.php being written out of URLs - El Forum - 06-03-2011 [eluser]Seb[/eluser] Hello, Code Igniter does not parse the .htaccess files to rewrite URLs. Therefore, I suggest you might look in another direction. Maybe you have : Code: $config['index_page'] = '' in some other configuration file... index.php being written out of URLs - El Forum - 06-03-2011 [eluser]InsiteFX[/eluser] Code: $config['base_url'] = '//localhost/baby-cow/'; InsiteFX index.php being written out of URLs - El Forum - 06-03-2011 [eluser]Unknown[/eluser] Quote:(removed http:// from urls because your spam filter was stopping me from posting) Now made that line bold so it stands out a bit more - sorry for the confusion. |