Drupal temporary URL

Most of the time a common question is asked, whether Drupal can be accessed with a temporary url ?

And the answer to it is yes, for this you will need to make few changes into your configuration file of Drupal and it will work perfectly as it on main domain url.

1) Eg: Drupal is installed on domain webhostingsupport.info and you want it to work on http://your-server-ip-address/~testing then you will need to make following changes.

 

i) Search for file settings.php under the installation directory of Drupal, it should be located

under ”sites/default/settings.php“

ii) Open settings.php in your favorite editor and look for $base_url = Previously it should be set

to “$base_url = http://webhostingsupport.info” change it to “$base_url = http://your-server-ip-address/~testing

save the file and exit it.

 

2) Now your drupal will work fine with temporary url, but accessing internal url will still give error.

to fix this edit the .htaccess file in the installation directory of drupal and make following changes.

i) add line RewriteBase /~username

Eg:

RewriteBase /~testing

 

 

And you are all done now.

 


contact@webhostingsupport.info

Post to Twitter

3 Responses to Drupal temporary URL

  1. Nice to be visiting your blog again. Thanks for posting this informative post. tag hauer watches

  2. admin says:

    Thanks for your kind words..

  3. hey there I just wanted to comment your blog and say that I really enjoyed reading your blog post here. It was very informative and I also digg the way you write! Keep it up and I’ll be back to read more soon mate

Leave a Reply

Your email address will not be published. Required fields are marked *