I have a server that hosts our Drupal 7 development, testing, and production environments:
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.