Apache server receives request in following format
http://192.168.110.65/?http%3A%2F%2Fdev.virtualearth.net
How do I have Apache generate a redirect to the query string using mod_rewrite
http%3A%2F%2Fdev.virtualearth.net
This is my mod_rewrite
<IfModule rewrite_module>
RewriteEngine On
ErrorLog "logs/rewrite.log"
LogLevel trace8
RewriteCond %{QUERY_STRING} http
RewriteRule "/" %{QUERY_STRING} [R,END,NE,QSD]
</IfModule>
This is in the logs:
Cannot map GET /http%3A%2F%2Fdev.virtualearth.net%2FREST%2Fv1%2FImagery%2FMetadata%2FAerialWithLabels%3Fincl%3DImageryProviders%26key%3DArqI7N2ea0D8oysu209dksva2GSUXRIz1fJZigqHRuHNQMhGHvVZwxg76pSlwBFi%26jsonp%3DloadJsonp758595 HTTP/1.1 to file
auth phase 'translate' gave status 403: /http://dev.virtualearth.net/REST/v1/Imagery/Metadata/AerialWithLabels?incl=ImageryProviders&key=ArqI7N2ea0D8oysu209dksva2GSUXRIz1fJZigqHRuHNQMhGHvVZwxg76pSlwBFi&jsonp=loadJsonp758595
The problem is instead of redirecting to the url in query string, it prepends current host to the URL (http://xx.xx.xx.xx/URL) and redirect, hence I get a 403. I need to find a way such that in redirection current host is not prepended.