Webhosting Blog

Accesss Drupal with temporary URL


Sometimes you might want to check your Drupal site just before publishing it.

You would like to access your drupal site using a temporary URL. In order to access a drupal site using a temporary URL.

For example: http://serverip/~username/drupal

Note :: drupal is the directory where you have configured drupal for your domain. Paths may vary according to configuration

Follow following steps in order to access the drupal site using a temporary URL.

1) Open the file /public_html/sites/default/settings.php

2) Find the setting “$base_url = ”.
Uncomment the line and configure it to read it as follows:

$base_url = ‘http://serverip/~test’;

Please be sure you are not placing the trailing slash.

3)Also will need to configure the .htaccess in order to correct the redirections.

4] Open the .htaccess file in the drupal directory.( /public_html/drupal/.htaccess)

In this locate the  line which says RewriteBase /.

Uncomment the line and change it as follows:

RewriteBase /~username

5) Save the file.

Now try accessing your domain using the temporary URL. Eg. http://serverIP/~username/drupal.

You can now access your drupal with a temporary URL.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s