I have a server that hosts our Drupal 7 development, testing, and production environments:
- /var/www/html/dev
- /var/www/html/test
- /var/www/html/prod
Instead of having dev and test live in subdirectories like http://ourdomain.edu/dev, we want the URLs to be http://dev.ourdomain.edu.
From a Drupal standpoint, is this best accomplished through an .htaccess file in each directory? Or in settings.php?
At the moment, functions like path_to_theme() aren't working at http://ourdomain.edu/dev since path_to_theme begins with a forward slash. Consequently, the theme refers to http://ourdomain.edu/sites/all/themes/ourtheme/images/logo.png instead of http://ourdomain.edu/dev/sites/all/themes/ourtheme/images/logo.png
It would be great to know what's considered best practice.
Thanks!