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 (
http://www.example.com/drupal/). After testing, I wanted the drupal site to be live from the root (
http://www.example.com/) WITHOUT moving drupal files to the root. After some searching and false leads, here's what worked for me...Your results may vary.
- On Apache server, add this to the root
RewriteRule (.*) drupal/$1 [L]
- Update the drupal
/drupal/site/default/directory) so that the
$base_url = 'http://www.example.com';
That's it! At least that's all it took for me.
- Taking your site live - Brief but helpful post on drupal.org.
|Practical Drupal: Evaluating and Using a Web Content Management System - by Niall Mansfield|