CodeIgniter Forums
remove index.php from form_open() - 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: remove index.php from form_open() (/showthread.php?tid=2475)



remove index.php from form_open() - El Forum - 08-07-2007

[eluser]webdude[/eluser]
is it possible to remove the index.php when using form_open() ?
Code:
echo form_open('email/send');
The above example would create
Code:
<form method="post" action="http:/www.your-site.com/index.php/email/send" />



remove index.php from form_open() - El Forum - 08-07-2007

[eluser]Michael Wales[/eluser]
Have you implemented the .htaccess solution - therefore your anchor() links don't have the index.php as well?

If you have, then look in your config.php and make sure you have it setup correctly.

If not, implement the .htaccess then alter your config.php.

Read the guide - it tells you how.


remove index.php from form_open() - El Forum - 08-07-2007

[eluser]webdude[/eluser]
Ah yea, thanks for the heads up. Had not removed the index.php from $config['index_page'] = "index.php";


remove index.php from form_open() - El Forum - 08-07-2007

[eluser]Michael Wales[/eluser]
User Guide: CodeIgniter URLs - See the "Removing index.php" section