This article is a mirror article of machine translation, please click here to jump to the original article.

View: 28908|Reply: 4

[Source] asp.net mvc Route route mapping .html suffix

[Copy link]
Posted on 6/14/2018 4:14:08 PM | | | |
The controller method adds the following features:

First, add the following code to the RouteConfig configuration file RegisterRoutes method:




Error:

HTTP Error 404.0 - Not Found
The resource you're looking for has been deleted, renamed, or temporarily unavailable.

Most likely causes:
The specified directory or file does not exist on the web server.
URL misspelling.
A custom filter or module, such as URLScan, restricts access to the file.




Solution:

Add the following configuration to the system.webServer node in the web.config file:



Restart the website and it is perfectly solved!



Resources:The hyperlink login is visible.

The article on MVC routing is as follows:

The hyperlink login is visible.
The hyperlink login is visible.




Previous:windows Apache ab web site stress test
Next:About the issue with incorrect java -verbose install path
Posted on 6/15/2018 9:19:46 AM |
Why .html it?
 Landlord| Posted on 6/15/2018 9:32:36 AM |

It is more SEO-friendly to search engines and easy to include
Posted on 6/19/2018 1:00:04 PM |
Xiao Zhazha Posted on 2018-6-15 09:32
It is more SEO-friendly to search engines and easy to include

Oh, I see
 Landlord| Posted on 3/1/2023 9:23:57 PM |
Handlers <add> configuration details:

https://learn.microsoft.com/en-u ... server/handlers/add
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com