I'm trying to change my .htaccess file so that if I go to:
http://www.example.com/index.php?login=true
, it goes to http://www.example.com/login
.
I currently have this code which removes index.php (which makes the above looks like http://www.example.com/?login=true
).
RewriteEngine On
#remove index.php
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
RewriteCond %{THE_REQUEST} ^GET