I'm working on a multisite setup... I want all sites to use www. I know that it will WORK either way, but would having the directory structure setup as either sites/www.domain.com or sites/domain.com make any difference in the efficiency of Apache as it handles requests and whatnot?

Comments

Magnity’s picture

Look in the .htaccess file. You will find a way of enforcing www or non-www format there.

I doubt either is significantly more or less efficient.

Magnity

http://webdesign.magnity.co.uk
Drupal 5 themes | Drupal 6 themes

iantresman’s picture

This is how Drupal7 does it:

  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} !^www\. [NC]
  # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
  # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]