CodeIgniter Forums
remove the index.php in site_url() function - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: remove the index.php in site_url() function (/thread-36946.html)



remove the index.php in site_url() function - El Forum - 12-21-2010

[eluser]runrun[/eluser]
The site_url() function keeps producing the index.php in the link, is there way to stop this ?


remove the index.php in site_url() function - El Forum - 12-21-2010

[eluser]TaylorOtwell[/eluser]
Put an empty string in the "index page" config option in application/config/config.php.


remove the index.php in site_url() function - El Forum - 12-23-2010

[eluser]markup2go[/eluser]
Don't forget you need mod rewrite enabled and a valid .htaccess file too.

http://codeigniter.com/wiki/mod_rewrite/