When I deploy my application, certain urls have to be https.
How can I develop locally and deploy, while being able to support urls that have https?
Is the only way wrapping the url with a function, that determines if you are local or live?
(this is a .net mvc app)
For URLs internal to the site always use relative paths.
For URLs that reference external sites you could use a resource file to manage them. That way you only need to update the URLs before deployment in one location.