- There are other top-level directories under web root. The drupal files will clutter with them in the root.
- Themes, modules and configuration files are all under separate directories in the root directory.
- Upgrades are problematic because of intermixing.
For reference, my living website (www.gleanergames.com) set up like this:
- gleanergames.com root = /public_html
- Drupal root = //public_html/drupal
- Extract all drupal files into a subdirectory named drupal. The directory structure should be:
- public_html (root directory)
- public_html/.htaccess
- public_html/drupal
- public_html/drupal/.htaccess
- public_html/drupal/includes
- public_html/drupal/modules
- public_html/drupal/...
- public_html/drupal/sites/
- public_html/drupal/sites/default
- public_html/drupal/sites/default/settings.php
- Edit the .htaccess file in root directory (public_html/.htaccess), add these lines:
RewriteCond %{HTTP_HOST} ^(www\.)?gleanergames\.com$
RewriteCond %{REQUEST_URI} !^/drupal/
RewriteRule ^(.*)$ drupal/$1 [L]
Don't forget to change the domain name (gleanergames) to yours. - Save the .htaccess.
- Open browser and type your domain name, you should be able to see your web site.
No comments:
Post a Comment