When I type in the URL Browser "example.domain.org" it will display IIS 8 page, but if I type "example.domain.org/ABC/Index.aspx" it redirects to "https://example.domain.org/ABC/Index.aspx" site page.
I am trying to configure when the online user types "example.domain.org" in URL address browser and automatically redirects to this following address : "https://example.domain.org/ABC/Index.aspx"
I will try it tomorrow, but so I have IIS hostname called "example.domain.org", I set up the URL rewrite from hostname into
https://example.domain.org/ABC/index.aspx. It works locally and outside of the world doesn't.
I would like this following URL : "example.domain.org" to redirect into "https://example.domain.org/ABC/index.aspx".
Please give me some example how to add a new rule to capture hostname to the root website and then redirect to the URL from example.domain.org into example.domain.org/abc/index.aspx
Member
34 Points
167 Posts
Redirects automatically IIS hostname to https
Apr 23, 2014 03:07 PM|slb2012|LINK
Hi there,
I would like to redirect from hostname "example.domain.org" to "https://example.domain.org/ABC/index.aspx"
See the code below - WebConfig file:
When I type in the URL Browser "example.domain.org" it will display IIS 8 page, but if I type "example.domain.org/ABC/Index.aspx" it redirects to "https://example.domain.org/ABC/Index.aspx" site page.
I am trying to configure when the online user types "example.domain.org" in URL address browser and automatically redirects to this following address : "https://example.domain.org/ABC/Index.aspx"
Please kindly help here. thanks.
Contributor
7095 Points
1966 Posts
Re: Redirects automatically IIS hostname to https
Apr 24, 2014 12:29 AM|anuj_koundal|LINK
Hi Slb this will solve your problem:
http://stackoverflow.com/questions/47089/best-way-in-asp-net-to-force-https-for-an-entire-site
Asp .Net Tutorials | www.codingfusion.com
Bank IFSC Codes
Ajax Control Toolkit
Member
34 Points
167 Posts
Re: Redirects automatically IIS hostname to https
Apr 24, 2014 12:52 AM|slb2012|LINK
Hi anuj_kodal,
I will try it tomorrow, but so I have IIS hostname called "example.domain.org", I set up the URL rewrite from hostname into https://example.domain.org/ABC/index.aspx. It works locally and outside of the world doesn't.
I would like this following URL : "example.domain.org" to redirect into "https://example.domain.org/ABC/index.aspx".
Contributor
7095 Points
1966 Posts
Re: Redirects automatically IIS hostname to https
Apr 24, 2014 01:59 AM|anuj_koundal|LINK
Try global.asax method this will work for you.
Asp .Net Tutorials | www.codingfusion.com
Bank IFSC Codes
Ajax Control Toolkit
All-Star
23975 Points
4084 Posts
Re: Redirects automatically IIS hostname to https
Apr 24, 2014 05:59 AM|Starain chen - MSFT|LINK
Hi slb2012,
For your requirement, you could add a new rule to capture example.domain.org to the root website, then redirect or rewrite to the necessary URL.
Note: You also should add the addition condition to avoid the loop redirect.
# URL Rewriting Tips and Tricks
http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/
Thanks
Best Regards
Member
34 Points
167 Posts
Re: Redirects automatically IIS hostname to https
Apr 27, 2014 02:55 PM|slb2012|LINK
Starain,
Please give me some example how to add a new rule to capture hostname to the root website and then redirect to the URL from example.domain.org into example.domain.org/abc/index.aspx
All-Star
23975 Points
4084 Posts
Re: Redirects automatically IIS hostname to https
Apr 29, 2014 04:16 AM|Starain chen - MSFT|LINK
Hi slb2012,
To add the rule to the Default Web Site, you could use the IIS manager.
There is a link that may benefit you:
# URL Rewriting Tips and Tricks
http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/
On the other hand, if you still have the issue with IIS write, I suggest that you should post it to the IIS forum for efficient response.
Thanks
Best Regards