I would like to remove index.php
by using .htaccess
file in root directory.
my framwork is codeigniter .
my htaccess :
AddType application/x-httpd-php53 php53 php
php_flag log_errors on
php_flag display_errors on
#php_value error_reporting 8
php_value error_reporting E_ALL
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^megarooz.com/$ [NC]
RewriteRule ^(.*)$ http://megarooz.com/$1 [R=301,L]
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
</IfModule>
order allow,deny
allow from all
my config:
$config['base_url'] = 'http://megarooz.com';
$config['index_page'] = '';
I got this message :
Not Found
The requested document was not found on this server.
It doesnt work :
http://megarooz.com/admin/Admin/login
It works fine :