I am trying to redirect an entire folder (containing hundreds of pages) to the same folder on another domain. The site uses a CMS that uses rewritecond to generate pretty page url's:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
This seems to be conflicting with my redirect.
When I use redirect 301 /folder/ http://www.site.invalid/folder/
, the pages are redirected to http://www.site.invalid/folder/index.php?q=folder/pagename.html which returns a 404.
Could anyone point me in the right direction?