php - codeigniter, 404 not found error -
i have web site , have installed codeigniter 2 site under sub folder (test)
users can access site using following link:
when user going access (test) site using above link url redirected following link , following error displayed.
http://www.example.com/test/login
not found
the requested url /test/login not found on server.
then add index.php above url, login page displayed.
http://www.example.com/test/index.php/login
when submit username , password again url redirected to, without logged on.
http://www.example.com/test/login
and again, not found.
.htaccess:
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule> config.php:
$config['base_url'] = ''; $config['index_page'] = ''; $config['uri_protocol'] = "auto" ; i have tried $config['base_url'] = "http://www.example.com/test" - still not working.
in config/config.php
$config['base_url'] = ''; $config['index_page'] = ''; in .htaccess (place outside application folder)
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
Comments
Post a Comment