Drupal is widely popular CMS. The Reason Drupal CMS hosting is so popular with in user because of its powerful platform, scalable, low cost, high value solution to manage entire back end solution for website. Drupal is one of the most preferred content management systems because of the user friendly interface provided. Where as some or the other day client do come up with some issue related to the url structure. One of the common question client asked always, how to manage Drupal temporary url ?

It is possible for the client to easily manage the temporary URL of Drupal. There are some changes needed to be done in the client website. There are also some necessary settings to be done in the Drupal configuration file and then it will work perfectly as it on the main domain url.

Step 1:- You have to check, at what location the Drupal content management system is setup. If Drupal is installed on the main domain example.om and then you want to have a temporary URL which should work as the mentioned structure http://server-ip-address/~example then you will require some necessay changes to do so.

a) You have to search for the file name “settings.php”. In the file mentioned above, you will get into the Drupal installed directory. It wont be difficult for you to find that particular file at the particular location under ”sites/default/settings.php“

b) Open any word editor. Locate the “settings.php” downloaded file on your local machine. In that file, look for $base_url = Previously it should be set to “$base_url = example.com” change it to “$base_url = http://server-ip-address/~example“ save the file and exit it.

Step 2 :- Now your drupal will work fine with temporary url, but accessing internal url will still give error. To fix the changes you have to edit the .htaccess file in the installation directory of drupal and make following changes.

You will have to add the file mentioned below:

add line RewriteBase /~username

Eg: RewriteBase /~testing, and you are all done now.