Last post Feb 06, 2015 03:01 AM by Summer - MSFT
Feb 05, 2015 02:54 AM|Jesper Petersen|LINK
this is so that people would like me how to https with www and without www on such that all my sends me over to the side with https www and without www.
I've tried to do like this:
if (!Request.Url.Host.StartsWith("www") && !Request.Url.IsLoopback)
UriBuilder builder = new UriBuilder(Request.Url);
builder.Host = "www." + Request.Url.Host;
Feb 06, 2015 03:01 AM|Summer - MSFT|LINK
Thank you for your post.
According to your code snippet, if you wanna analyze and perform URL info check, you can leverage HttpApplication.BeginRequest event which occurs as the first event in the HTTP pipeline. A typical sample for your reference:
Regards & Summer