Redirect Drupal to Root - I feel so silly that I couldn't figure this out. I installed a test copy of drupal in a drupal sub-directory ( After testing, I wanted the drupal site to be live from the root ( WITHOUT moving drupal files to the root. After some searching and false leads, here's what worked for me...Your results may vary.

  1. On Apache server, add this to the root .htaccess file.
RewriteEngine on
RewriteRule (.*) drupal/$1 [L]
  1. Update the drupal settings.php file (in /drupal/site/default/ directory) so that the $base_url line reads:
$base_url = '';

That's it! At least that's all it took for me.

Practical Drupal: Evaluating and Using a Web Content Management System - by Niall Mansfield

Related Posts

Kate Kulikova — 24 November 2007, 07:41

Thank you for the information! Very useful tutorial.

Brent — 25 November 2007, 11:43

Glad it helped, Kate! It felt like such a basic thing, but I had lots of trouble finally getting a solution that worked.