win2008 IIS7 suffix-free URL deployment problem MVC4 MVC URL mapping detailed introduction

黄舟
Release: 2017-06-02 10:29:06
Original
1635 people have browsed it

This article mainly introduces the problem of win2008 IIS7 suffix-free URL deployment MVC4 MVC URL mapping, friends who need it can refer to it

The preface and the middle paragraph are where I found the problem Process and thinking method. If you are not interested, you can skip directly to read the following problems and solutions.

Preface:

The problem occurs after the site is completed and deployed to the server. I think this is the easiest The work. The result was tragic. IIS7 was used on Windows Server 2008 R2, and URL redirection without suffix could not be recognized. I searched frantically on the Internet. Many people would say that this problem is very common, and there is a lot of information on the Internet. In fact, it is not true. Today I I want to give you the most official solution to this problem.

End of nonsense. Let’s talk about the problem first. Isearched a lot and found several problems.
First, the provided The solutions are all old. Many websites just copy each other. Most of the accompanying pictures are gone.
Secondly, those with accompanying images are mostly IIS6 versionPictures.
Thirdly , the most deceptive thing is this. All the information requires everyone to add an * asterisk mapping. It seems that the problem is solved. But there are many sequelae. For example, it will appear when you really need to access files with suffixes. Question.
Fourth, I feel that this method is very copycat. Since Microsoft has made MVC into a suffix-free style, doesn’t it provide a method?
So I searched relentlessly. In the official On the website, I found a foreigner with the same problem. Here is the official solution.

Question:

After the development of Microsoft MVC4, the URL address is the page obtained through redirection, so there is no suffix. .IIS cannot be recognized.

Solution:

Microsoft provided an official solution a long time ago, but not many people in China seem to know about it (it may also be that many people know that everyone thinks it is too I’m not happy to post a simple problem on the Internet).
Officially provides a patch to handle URLs without suffix
Download directlyInstall the server. Restart it. Okay, now there is no need to add any mapping. Your IIS7 can also support redirect pages without suffix

Ending:
The problem is solved simply by downloading a patch and installing it. Just pass by with disdain for this problem. Don't say I'm too mentally retarded. I just want to share with you some problems that I actually encountered but are not easy to find answers to.
If it is helpful to you, please give me a reply. It is a great motivation for me.

The above is the detailed content of win2008 IIS7 suffix-free URL deployment problem MVC4 MVC URL mapping detailed introduction. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!