Fix for sites with sub-directory