I developed a web site in MVC, now I need put this web site in production server. But, in my machine the url is http:\localhost:1600\ but in the server the site ist http:\10.132.130.122\MyIGF
I think this problem are about routes because my website has this code in HTML
<link href="/Contenct/site.css" />
<a href="/Home/Login">Login</a>
And / not is the route correct to site.
The correct to production server is
<link href="MyIGF/Contenct/site.css" />
<a href="MyIGF/Home/Login">Login</a>
Any helps?
This isn’t a route problem, its a fundamental flaw with the way your links are created.
If you use the
Url.Contentdirective, mvc will put the correct path on your content files.For links to actions, there is also
Url.Actionwhich would create the correct link.