I have answered this question previously and even posted the answer to it by myself. I tried most of the answered questions, but it still didn't work. The first question is regarding placement of the .htaccess
file, should I keep it with application folder or inside it? and the next question is 'How should I remove the index.php
from URL'?
.htaccess code:
RewriteEngine On
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
Config.php code:
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
and if possible do also suggest a detailed tutorial regarding how to customize TankAuth or any other authentication library which can be easier. I am using Windows 8.1 and Wamp Server.
Any suggestion or help is appreciated.
Use this in your .htaccess file:
place ./ before your index.php rewrite rule.
or this
For more detail refer link:https://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html