我可以在哪裏設置drupal站點的基地址。目前,當我在本地主機上訪問該網站時,它會重定向到原始網站。請幫幫我。如何在drupal中設置基地址
我已經嘗試設置在網站$ BASE_URL /默認/ settings.php這個
這裏是我設置的基本URL部分
/**
* Base URL (optional).
*
* If you are experiencing issues with different site domains,
* uncomment the Base URL statement below (remove the leading hash sign)
* and fill in the URL to your Drupal installation.
*
* You might also want to force users to use a given domain.
* See the .htaccess file for more information.
*
* Examples:
* $base_url = 'http://www.example.com';
* $base_url = 'http://www.example.com:8888';
* $base_url = 'http://www.example.com/drupal';
* $base_url = 'https://www.example.com:8888/drupal';
*
* It is not allowed to have a trailing slash; Drupal will add it
* for you.
*/
# $base_url = 'http://www.example.com'; // NO trailing slash!
$base_url = 'http://localhost/mysite'; // NO trailing slash!
如何清理緩存!!!? – 2011-05-04 07:21:02
謝謝Soju指點我的問題:D – 2011-05-04 07:26:58
我在這裏找到了解決方案:http://drupal.org/node/42055 – 2011-05-04 07:27:10