Another developer wrote these rules rules:
[ISAPI_Rewrite]
RewriteCond Host: (?:.+\.)?mydomain\.com
RewriteCond URL ^/mydomain.com/(.*)
RewriteCond METHOD GET
RewriteRule ^/mydomain.com/(.*) /$1 [I,R]
RewriteCond Host: (?:.+\.)?mydomain\.com
RewriteCond METHOD POST
RewriteRule ^/mydomain.com/(.*) /$1 [I]
RewriteCond Host: (?:.+\.)?mydomain\.com
RewriteRule (.*) /mydomain.com/$1 [I,L]
The problem is I'm not sure if those lines are the ones causing the site to redirect to the http://www.mydomain.com whenever we try accessing http://www.mydomain.com/shop. I am also concerned if those lines have an impact on SEO. BTW, the site is running on IIS and not Apache.
Any help would be very much appreciated. Thanks.