should i maybe change
RewriteRule ^(.*) index.php?/$1 [E=VAR1:$1,QSA]
to
RewriteRule ^(.*) shop/index.php?/$1 [E=VAR1:$1,QSA]
?