Set Up Drupal (multisite) in a Subdirectory

Lots of people who are working with Drupal would like to install it in a subdirectory of their website rather than using the recommended installation into the webroot of the server. You may already have a functioning site on the server and want to install Drupal to test it or to begin conversion of the old site to Drupal. Or you may have plans to integrate other web applications like wiki and blogging software into the site and just want to keep your webroot clear. Perhaps you want the flexibility of installing several Drupal versions simultaniously during upgrades and migrations - or because some modules take longer than others to get upgraded. There are many valid reasons for a subdirectory configuration of Drupal. But when you install Drupal into a subdirectory, your URLs will often reflect the fact - looking something like http://www.example.com/drupaldirectory/ instead of http://www.example.com/. Why doesn't Drupal have a setting to fix this? Because it's a server configuration issue, and Drupal treats it as such. Don't worry, though. Here are some suggestions for configuring Apache server to handle your subdirectory setup.

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.