I have the below line in my htaccess file to clean url and is working very fine but i want to redirect to a page without showing the base file name.
What the code does http://example.com/index/e/dog
What am trying to do is to hide the index.php and have a url like this
http://example.com/e/dog
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ $1.php [L,QSA] #remove php extension
RewriteCond %{THE_REQUEST} /index\.php\?e=([^\s&]+) [NC]
RewriteRule ^ /index/e/%1? [R=301,L]
RewriteRule ^index/e/([^/]+)/?$ index.php?e=$1 [L,QSA]
Unclean url http://example.com/index.php?e=dog