Apparently, it was auto generated within Cpanel.
I would like all files within a directory and it's subdirectory to be 301'd to a different directory and discard all file names and Variables on the way.
Somehow, the redirect in use is carrying the variables and attaching them to the new directory.
QUOTE
RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.co.uk$
RewriteRule ^shop\/\/?(.*) "http\:\/\/www\.domain\.co\.uk\/stores\/index\.php" [R=301,L]
RewriteCond %{HTTP_HOST} ^domain.co.uk$ [OR]
RewriteCond %{HTTP_HOST} ^www.domain.co.uk$
RewriteRule ^shop\/\/?(.*) "http\:\/\/www\.domain\.co\.uk\/stores\/index\.php" [R=301,L]
So the objective is to redirect all requests for anything in the directory and it's sub-directories:
domain.co.uk/shop/ to domain.co.uk/stores/
What is happening at the moment is that redirected requests are carrying over the variables as:
domain.co.uk/stores/?pid=63
Any help would be extremely useful as htaccess is not my strong point.









