Operation and Maintenance
Windows Operation and Maintenance
win2008 IIS7 suffix-free URL deployment problem MVC4 MVC URL mapping detailed introductionwin2008 IIS7 suffix-free URL deployment problem MVC4 MVC URL mapping detailed introduction
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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

WebStorm Mac version
Useful JavaScript development tools

MinGW - Minimalist GNU for Windows
This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft




