CodeIgniter Forums
http://localhost/index/index looks for index.html - 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: http://localhost/index/index looks for index.html (/showthread.php?tid=30815)



http://localhost/index/index looks for index.html - El Forum - 05-26-2010

[eluser]Unknown[/eluser]
Hi,

I get the following error:

The requested URL /index.html/index was not found on this server.

I have already set apache to look for index.php and simply entering http://localhost gets me to the correct page. However, any links followed to the index controller seems to interpret /index as /index.html

Any ideas?


http://localhost/index/index looks for index.html - El Forum - 05-26-2010

[eluser]WanWizard[/eluser]
Check your ./application/config/config.php. What is defined for 'index_page'?


http://localhost/index/index looks for index.html - El Forum - 05-26-2010

[eluser]Unknown[/eluser]
it is empty, I have the following in a .htaccess file in the root:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]