Knowledge Base

Get Expert Website Hosting

Choose website reliability and expertise with SiteGround!

Home / Other Applications / Drupal / How to configure Drupal to work with parked domains?

How to configure Drupal to work with parked domains?

Summarize this article with:
Last update: Aug 07, 2025

If you cannot log into your Drupal application using your parked domain, change the following line in the sites/default/settings.php file:

$cookie_domain = ‘yourdomain.com’;

to

$cookie_domain = $_SERVER[‘HTTP_HOST’];

This way Drupal will send the proper cookie information, matching the domain name you have used to access it.

Share this article

Found this article useful?

Add SiteGround to your preferred Google sources