Home Remove Host from the url and make query string as host
Reply: 0

Remove Host from the url and make query string as host

user619
1#
user619 Published in June 19, 2018, 6:25 pm

I am trying reverse proxy with redirect. I am trying to remove the host from the url and construct the url from the query string. Like

http://www.examplehost.com/newexample.com:8080/ -> http://www.newexample.com:8080/

Query string sent to the url is dynamic.

I have done something like this: RewriteCond %{HTTP_HOST} ^www\.examplehost.com/ [NC] RewriteRule ^(.*)$ http://$1 [NC,QSA]

But it is generating http://www./newexample.com:8080/ which is throwing error.

How do I convert the query string to new URL.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.319186 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO