Hi everybody,
I have a Url with in the url a returnUrl. I would like te make a method which change the method to another structure. See below an example of the incomming url and the output:
Incomming url:
HttpContext.Current.Request.Url.ToString()
http://dealerc.webshop.com/Pages/login.aspx?CatalogusNaam=dealerc&ReturnUrl=http://dealerc.webshop.com/default.aspx?CatalogusNaam=dealerc
Output url:
https://order.webshop.com/dealerc/Pages/login.aspx?ReturnUrl=https://order.webshop.com/dealerc/default.aspx
As you can see in the example above, I would like to change http to https and change the host to order.webshop.com. And add the subdomain dealerc to a foldername after the host. And I would like to filter the querystring on the CatalogusNaam (I would like to remove it from the querystring).
< ...
Go to the complete details ...