Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
It doesn't really matter where the code is. The url and document root can be set in the Apache configuration. If you don't have that kind of access, yes the subdirectory will have to be included. It is only the root directory which is not included in the url (depending on the Apache config)
Comments
Install Drupal in Directory, what is the more professional direc
I prefer and recommend "portal".
Thanks. How about others?
Thanks. How about others?
doc root directory
I use main and test, temp and backup dirs for saving settings files and database backups for upgrades.
Neil
So your drupal is installed
So your drupal is installed in "main" meaning your url is in this format: domain.com/main/node/ ?
drupal is installed
Yes drupal is in /main
No url format doesn't include the document root directory. It is domain.com/node this is set by the base url in settings.php
Neil
I installed my drupal in a
I installed my drupal in a subdirectory.
I tried removing the subdirectory name from my base url and my links are not working.
CSS file don't load.
Node links don't work without the subdirectory part.
subdirectory
It doesn't really matter where the code is. The url and document root can be set in the Apache configuration. If you don't have that kind of access, yes the subdirectory will have to be included. It is only the root directory which is not included in the url (depending on the Apache config)
Neil