I have an .htaccess file on my server (using codeigniter)
This is my view page
<form action='cms/register' method ='post'>
bla bla bla
</form>
and the contoller-model as everybody know the problem is when I click submit nothing happen but if I change the form heading to be like that
<form action='cms/index.php/register' method='post'>
evreything works so the problem is from the .htaccess.
How can I solve it?
Use dynamic urls like this:
$this->load->helper('url');
And then in the form:
<form action="<?php echo site_url("register"); ?>">
If site_url() not working then try base_url().
Update:
Copied from application/config/config.php, change 'index.php'
to ''
from $config['index_page']
if you are using mod_rewrite.
/*
|--------------------------------------------------------------------------
| Index File
|--------------------------------------------------------------------------
|
| Typically this will be your index.php file, unless you've renamed it to
| something else. If you are using mod_rewrite to remove the page set this
| variable so that it is blank.
|
*/
$config['index_page'] = 'index.php';