rewrite url in .htaccess & add base href for app