fixed rewriting of asset urls

 when using mod_rewrite in a subpath and/or fcgi