Change Drupal Default Front Page Base URL

Onexlab
2 min readFeb 11, 2022

In StackOverflow, there are several questions and forums about changing the Drupal default front page URL, but none of them provide any solutions. In this article, we will show you step by step how to change the Drupal default front page URL.

Change Drupal Default Front Page Base URL

Video

Site

We are using XAMPP to test it locally. As you can see in the following screenshot we have hosted our website under htdocs directory onexlab-drupal.com

Before Configuration

You can see in the following screenshot our Drupal default front page base URL

To change Drupal’s default front page base URL, there is no hardcoded code or database configuration that needs to be updated

httpd.conf

Uncomment the following line in /Applications/XAMPP/xamppfiles/etc/httpd.conf file

Include etc/extra/httpd-vhosts.conf

httpd-vhosts.conf

add the following VirtualHost

Edit Hosts File

Open the terminal and type the following command

sudo vim /private/etc/hosts

--

--