First of all pardon me for asking this question as it has been discussed in number of times. I tried everything I came across but I feel I am doing something wrong. So I would appreciate some help in this case.
I want remove 'index.php' from urls. Currently the url is
http://localhost/eshop/index.php/home
But I want it like
http://localhost/eshop/home
Here is my .htaccess
RewriteEngine on
RewriteCond $1 !^\/(index\.php|res|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
I have also tried this
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /eshop/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
With this only "http://localhost/eshop/
" is working but "http://localhost/eshop/home
" or "http://localhost/eshop/contacts
" are still failing.