How to remove /drupal from URL in Drupal 7 when installation is in the associated sub-directory

前端 未结 3 1562
感动是毒
感动是毒 2021-02-10 18:47

In Drupal 6 I was able to successful install Drupal in a subdirectory called drupal and then reference the site without having to use example.com/drupal. In Drupal 6 to get this

3条回答
  •  庸人自扰
    2021-02-10 19:27

    On Apache server, add this to the root .htaccess file.

    RewriteEngine on RewriteRule (.*) drupal/$1 [L]

    Update the drupal settings.php file (in /drupal/site/default/ directory) so that the $base_url line reads:

    $base_url = 'http://www.example.com';
    

提交回复
热议问题