sub directory multisite just redirecting to default after first page I have a sub directory multisite setup on a sub domain. (locally with mamp everything is running fine), but on my live server, i can only reach the first (home) page of the multisite site, and when going anywhere (q?=user/login), i get directed to the default site.

site is dev.mysite.com/www.example.com

i have softlink in the drupal root - www.example.com -> ./

in sites.php i have 

$sites = array('dev.mysite.com.www.example.com' =&gt; 'example.com',);

and of course the structure is sites/example.com

nothing like a cookie address in the settings... i dont know what else could be wrong. Using the same htaccess, the default, that was working locally for me.



i did notice something interesting that could be a clue. I have a logo image embedded in the page template. (img src="&lt;?php print base_path().path_to_theme(); ?&gt;/img/logo.png")

so locally the source prints as:

img src="/www.mysite.com/sites/example.com/themes/example/img/logo.png"

and on the server it looks like 

img src="http://dev.mysite.com/www.example.com/sites/example.com/themes/example/logo.png"
Any caching turned on? (varnish/memcache/...)

If using memcache make sure to separate the memory buckets in each site's config.

$conf['memcache_key_prefix'] = 'Example_Memcached_Key';