lucy24 - 1:18 am on Feb 21, 2013 (gmt 0)
we are moving a store from a self-managed platform to a hosted platform
That was the part I wanted to double check. 99 times out of 100, subdomains will physically live in directories within the directory that contains the primary domain. This means that any requests for the subdomain have to pass through the main domain's config file (and htaccess if any).
But it sounds as if you've got the 100th case, where the two things live in entirely different locations. That means that requests for the subdomain will not pass through the primary domain's config/htaccess, and vice versa. It can make rewrites a lot easier, but it still gives me a headache.
Overlapping g1 here
I established that the simple RewriteRule needs to be in the old store subfolder, not the www root
It can go either way. The main difference is that if the rule is in the (old) root, you need to include "store/" at the beginning of the rule; if it's in the subfolder you don't need it because the request has already been filtered down.
But rules of any kind should be as close to the "top" (config file or root-level htaccess) as possible. Otherwise the server is doing the extra work of sending requests along to the next subdirectory-- when they're going to end up being redirected anyway.