Something Different In Linux

Home » CMS » Drupal » Drupal Site with temporary URL

Drupal Site with temporary URL

Posted by Rishikesh Vispute Categories: Drupal

Question :  How to access Drupal Site with temporary URL(http://serverip/~username) ?

Answer : If you have installed drupal by using fantastico and if you want to access your drupal site with the tempoary URL like http://serveripaddress/~username  then follow the steps

1] Change the “$base_url = ” in /public_html/sites/default/settings.php to your temporary URL WITHOUT A TRAILING SLASH!!!!

for example:
$base_url = ‘’;

now the site should work, but on certain links on the site, the browser will error out with a bad redirect and the URL in the browser.

so to correct this…

2] Uncomment the “RewriteBase /”  line in /public_html/.htaccess and change it from:

#RewriteBase /
RewriteBase /~username

for example:
RewriteBase /~test

and now you should be able to set up and test the website you created in Drupal. Once you are finished and have tested everything successfully.

Done ….

Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...