ASP.NET RAZOR 网址?获取 403
我使用 WebMatrix 进行了尝试并做了一个非常简单的学习网站。但是,当我上传到实际的 Windows 服务器(是的,已安装 WebMatrix)时,MVC 样式 url 不起作用。
如果您访问 http://173.201.29.98:88/
您会看到
但是如果您转到http://173.201.29.98:88/Default.cshtml
有用。
有谁知道出了什么问题吗?我所做的就是上传它,没有使用“发布”功能。
I used WebMatrix to play around and do a very simple site for learning. However, when I upload to an actual Windows server (yes, WebMatrix installed) The MVC style url's dont work.
If you go to http://173.201.29.98:88/
You'll see
But if you go to http://173.201.29.98:88/Default.cshtml
it works.
Anyone know what's wrong? I'll I've done is upload it, didn't use the "Publish" feature.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哈哈,在更深入地查看 Stack Overflow 后,我找到了答案。
Razor 页面无法使用 Rewrite
非常简单。
Lol, after looking more deeply in Stack Overflow I found the answer.
Razor page not working with Rewrite
Pretty Simple.