1

I am on my long way to move my D6 site to other hosting company. It was hard but finally seems it's almost done but I am stacked on multisites configuration. Situation is like this:

Drupal folder (from ftp/apache access point of view)

  • /webs/drupal/site (main )
  • /webs/drupal/site/sites (multisites)

domains:

  • www.a.com
  • www.b.a.com

point to:

  • /webs/drupal/

/webs/drupal/.htaccess file

#redirect to */site
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?b.a.com$
RewriteRule ^(/)?$ site [L]
RewriteCond %{HTTP_HOST} ^(www.)?a.com$
RewriteRule ^(/)?$ site [L]

/webs/drupal/site/.htaccess

  • it's standard D6 .htaccess with "always add 'www' prefix" rule on

The problem is that I can:

  • access default site using all combinations like www.a.com, a.com, a.com/site
  • access subsite like www.b.a.com/site

but all calls like:

  • www.b.a.com
  • b.a.com

redirects to the main site www.a.com/site ...

Any ideas?

4
  • I'm voting to close this question as off-topic because it's really more about writing htaccess files than about Drupal itself.
    – Mołot
    Jun 18, 2015 at 10:21
  • I opt, as htaccess is clean tested and working, the question here is why drupal do not call/see subsite but redirects to the main.
    – Paul Paku
    Jun 18, 2015 at 10:24
  • True enough. See here and test what URL your site is actually "seeing". Put it in index.php (back up real index.php of course).
    – Mołot
    Jun 18, 2015 at 10:27
  • REQUEST_URI: /site/ REDIRECT_URL: empty in all cases, no deference for b.a.com or a.com. Have no idea what does it mean
    – Paul Paku
    Jun 18, 2015 at 11:57

1 Answer 1

1

It was a matter of the firefox cached data. After cleaning the cache it works.

Not the answer you're looking for? Browse other questions tagged or ask your own question.