SPWeb.Url returns wrong URL

Posted by Jason on Stack Overflow See other posts from Stack Overflow or by Jason
Published on 2010-01-20T20:00:23Z Indexed on 2010/05/11 19:04 UTC
Read the original article Hit count: 579

I have a web application in SharePoint that has been extended to another zone (Extranet). The access URL for the default zone is http ://server1, and the URL for the extranet zone is https: //www.server1.com.

Now, when I access the site via the extranet zone, I find that SPContext.Current.Web.Url returns http ://server1. I would have expected https ://www.server1.com, since that's how I'm accessing the site. What am I doing wrong?

© Stack Overflow or respective owner

Related posts about sharepoint

Related posts about alternate-access-mappings