I am currently working on setting up 301 redirects, and regardless of whether I implement the redirect in .htaccess or use a meta or javascript redirect, they all seem to be working. However, there is an issue where the old URL or directory is being appended at the end of the redirected URL.
Here is an example of what I have in my .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.bigcars.ca [NC]
RewriteRule ^(.*)$ http://support.ca/$1 [L,R=301]
redirect 301 /contact http://support.ca/mynewpage/pagename.html?somequeries
redirect 301 /contact.html http://support.ca/mynewpage/pagename.html?somequeries
In addition to this, I also attempted using a meta and/or javascript redirect by visiting the contact.html page that needs to be redirected. However, both methods worked but still retained "/contact" at the end of the URL, which was not the desired outcome.
Although each method consistently executes the redirect, I always end up with "/contact" or "contact.html" at the end of the URL.
Any suggestions or help would be greatly appreciated!