I have built a website using drupal. Now, the base URL is http://xxx.xxx.xxx.xxx/drupal. But I want to change base URL as http://xxx.xxx.xxx.xxx How do I do?
Thanks.
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.
Sign up to join this communityI have built a website using drupal. Now, the base URL is http://xxx.xxx.xxx.xxx/drupal. But I want to change base URL as http://xxx.xxx.xxx.xxx How do I do?
Thanks.
go to yousite/sites/default
and open the settings.php
file and find $base_url
and change it to the new value (somewhere around line 270).
NOTE : settings.php
is a read-only file, you need to clear the read-only flag first to make the changes. You'll need to restart the server to update the changes.
$base_url=siteroot
; else if it is in some folder inside the root of the server, then you need to have site_root/path_to_drupal_install_folder
value for your $base_url
– AjitS
Jun 12 '12 at 10:21
There is a global variable called $base_url
that you can set in sites/default/settings.php. Try changing its value.