I used Drupal multisite approach. When I go to mydomain.com
the default site is loaded and if I deleted sites/default/settings.php
file, it is creating again.
How do I disable the default site so that, not even the installation page is shown?
I used Drupal multisite approach. When I go to mydomain.com
the default site is loaded and if I deleted sites/default/settings.php
file, it is creating again.
How do I disable the default site so that, not even the installation page is shown?
Create a directory under the sites
directory besides default
with the exact name as your domain and place the settings.php file in it. You can delete the default/settings.php after this.
sites/default/settings.php
and go to http://myip
I get redirected to http://myip/install.php?profile=myprofile&locale=en
. How do I avoid this?
mydomain.com
) and place the settings.php
in it (sites/mydomain.com/settings.php1
).
You can follw these documents for better understanding of multisite approach in Drupal.
link1
Link2
If possible you can mention in your question, which steps you have followed also.
You can just delete everything in default/settings.php and write whatever logic you like in settings.php (print message, redirect, just exit, etc ....) and don't forget exit() the the script after you finish.
Also you can choose one of the sites you have to act as a default site just replace the default directory with it.
@see conf_path() for the code implementation of Drupal multi-site.