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
in
config.php
change thisand in .htaccess(NOTE: this should be place outside application folder)
i think it will help you,
.htaccess
in config.php
Thanks
it works on me, I use v2.2.6 by the way
here is what it looks like
picture image link
application > config > config.php
definitely it will work.
Try this htaccess works fine windows 7 and 8.1 and xampp
Make sure you place the .htaccess in main directory and not the application folder.
Config
More htaccess https://github.com/riwakawebsitedesigns/htaccess_for_codeigniter