Fix some paths, fix htaccess template and improve support for client-side placeholders