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:

http://www.example.com/test/

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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -