My drupal site works in local domain dev.example.com (which is configured as a virtual host).

For some reason, now I need to access the site using exactly the following address:

where is the IP address of the local host where the site resides.

When this address is entered, I am redirected to Looks like Drupal treats this as a new domain.

How to tell Drupal to treat these two domains identically, i.e. treat as an alias of http://dev.example.com ?

1 Answer 1


It sounds like your site's settings might be in a multisite folder like /sites/dev.example.com/. When you aren't visiting via the hostname it will fall back to the settings in /sites/default/—check that those values are correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.