So I am trying to do a 301 redirect that should be working like this:
OLD URL: www.mydomain.com/test/an-old-url.html
301'ed to: www.mydomain.com/new/
But it looks like this after the 301: www.mydomain.com/new/?url=an-old-url.html
I am not just redirecting that one url I have about 400 others that are in all different sub-directories so its not just /test/ its /test1/, /test2/...etc and going to /new1/, /new2/...etc
Here is what I think is controlling it in apache: RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^mydomain.com [NC]
RewriteRule ^(.*)$ [
mydomain.com...] [L,R=301]
Does anyone know what would be causing this and how to fix it?
P.S. I also found this in the .htaccess but don't really know if it effects this or not. RewriteRule ^content/([0-9]+)\-.+ content/index.php?id=$1
RewriteRule ^finance/([0-9]+)\-.+ finance/index.php?id=$1
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_URI} !^/forums/ [NC]
RewriteCond %{REQUEST_URI} !^/content/
RewriteCond %{REQUEST_URI} !^/dfa/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php