how to get rid of /index at end
If you want to remove index.php
from URL then follow code will surely works for you.
<IfModule mod_rewrite.c>RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L]<IfModule mod_rewrite.c>
Please remove the index.php in codeIgniter Framework config file
$config['index_page'] = '';
And apply below htaccess coding
RewriteEngine ONRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond $1 !^(index\.php|css|images|robots\.txt)RewriteRule .* index.php/$0 [PT,L]
This code works for me
Options +FollowSymLinks RewriteEngine on RewriteCond $1 !\.(gif|jpg|shtml|ico|swf|wav|mp3|less|cur) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php?p=$1 [QSA]