I have a drupal site at http://example.com and a development version of the same site at http://another.example.com/subdir. When I'm working on the development version, content that references /sites/default/files/ - such as images - doesn't work because it needs to include the '/subdir' part of the path. Setting $base_url
doesn't work because that uses the BASE
element's href
attribute which doesn't affect urls beginning /
if the href
includes a subdirectory.
What's the best way of including the subdir in the image references? Do I need to resort to a server rewrite?