I have a website that is using Windows Server 2003. The site is called https://mysite.com/ and at ip address 111.1.1.1. Now when I log into the site all my relative links that are generated using NavURL (<%# NavURL("Images/Menu/img.gif")%>) are saying "http://111.1.1.1/Images/Menu/img.gif" instead of "https://mysite.com/Images/Menu/img.gif". This is causing an error because it needs to be secure. I'm sure there is a setting on the server somewhere to point to the name and not the ip, but I don't know where. Thanks for your help.
migrated from stackoverflow.com Mar 17 '10 at 2:47
|
Your You need to investigate where the host (and protocol) part of the generated URLs are read from. If possible, you might want to modify |
|||
|
|
|
I was able to fix the problem by replacing NavURL with ResolveUrl. This isn't the fix I wanted but it works. I still have the exact same site running fine with NavURl on a different server so I'm sure it is a server setting somewhere, but this should do for now. |
|||
|
|
NavURL? – Jørn Schou-Rode Mar 16 '10 at 20:54