I have tried with following code.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_URI} ^system.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^application.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
I have replaced with blank in config file index_page but still not working and getting this error.
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
Please help me to sort out this.
2
Answers
I have solved the problem. I have made web.config in root directory of codeigniter. My Code is following.
It is working for me. I hope this will help others too.
place your
.htaccess
file within your codeiginter project directory then write this code in.htaccess
Replace “project_dir_name” with you actual directory name in 3rd line.
If still you have problem then check your controller, method name and permission of folders and files.