I am using the following in my .htaccess file to remove index.php:
<IfModule mod_rewrite.c>
RewriteEngine On
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Redirect non-www to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
</IfModule>
I need to redirect an old page to a new, existing page but I am getting strange results.
I added the following to the .htaccess:
Redirect 301 /Payment.aspx /clients/login
But the url it redirects to looks like this:
http://www.myurl.com/clients/login?/Payment.aspx
It is adding that extra query string to the end of the URL.
Is there any way around this?