I am trying to create a duplicate Magento store 'shopB', based on an existing implementation 'shopA'. I am doing this using a new virtual host. When I go to /skin/frontend/default/shopB/images/logo.jpg the image is there fine, so the virtual host looks to be set up ok.
I have duplicated the Magento database and updated the core_config_data for both web/secure/base_url and web/unsecure/base_url.
I have cleared var/cache, var/session and var/tmp folders.
What else should I check to stop this redirect to shopA?