How to Configure Drupal to Work with Parked Domains?

If you cannot log into your Drupal application using your parked domain, you should 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.


Was this article helpful?

mood_bad Dislike 0
mood Like 0
visibility Views: 2297