I have developed several webparts, where i used SPContext.Current.Web.Url to get the web url. It's working when access a site with hxxps://abc/ But i get http instead of https when accessed by IP.
Problem: When i access hxxps://172.1.25.25/ SPContext.Current.Web.Url returns hxxp://172.1.25.25/
When i access hxxps://abc/ SPContext.Current.Web.Url returns hxxps://abc/
My Alternate Access Mappings
hxxp://172.1.25.25/ Intranet
hxxps://172.1.25.25/ Intranet
hxxp://abc/ Internet
hxxps://abc/ Internet
I used several workaround which i got it in the Forum :( nothing worked, Thanks in Advance