Any request for /
that has a query string is causing a 404 to be triggered. I've found that if I add a /shop/
before the query string, it gets redirected internally and no 404 is triggered.
I need a general mod_rewrite rule that will take a URL in the form of:
http://www.example.com/?foo=bar
and redirect it to:
http://www.example.com/shop/?foo=bar
where the query string (could be anything) is preserved.
This will redirect (URL will change) all hits into ROOT (e.g.
http://www.example.com/
) that has query string intohttp://www.example.com/shop/
.This will rewrite internally (URL will stay the same in browser) all hits into ROOT (e.g.
http://www.example.com/
) that has query string intohttp://www.example.com/shop/
.