Welcome Guest, Not a member yet? Register   Sign In
remove index.php from form_open()
#1

[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" />
#2

[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.
#3

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

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




Theme © iAndrew 2016 - Forum software by © MyBB