How to change URL of a Drupal site

To change the URL of a Drupal website, edit the file

sites/default/settings.php

Find the line

$base_url = 'https://www.your-current-domain';  // NO trailing slash!

Replace your old domain name with your new domain name.

Advertisement

Add a comment

Leave a Reply

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

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement