. Net implements URL rewriting, pseudo-static (method 1),. net
1. Obtain Mircosoft URLRewriter. dll (Note: The dll file size is about 20 KB. If there are 8 KB incomplete files on the Internet, an error will be reported)
2. add reference to the dll
Configuration Items application/config/routes that's it!Routing controlMake your page accessible by the URL you wantRoute customizationHelps you implement routing, that is, key ($var) =>value ($url)The point is that before you make a request to the
First step: Simulate the Mapping pageWe want to click on the guid.html link on one page to jump to the guid_{492f3e0b-848e-11da-9550-00e08161165f}.html page of the complex URL. That is, define a map that hides the actual URL and maps it to a URL
Let Nginx support ThinkPHP URL rewriting and PATHINFO sharing methods. After a day of research, I found that the following configuration can perfectly support URL_MODEL2. The Copy code is as follows: locationproject {I found that many methods on the
Note: This series records the problems encountered in my actual development and collects some tips articles.This tips and tricks record is: Using URL rewrite to hide complex URLs, very simple tricks, I believe we all know.This scene is too common,
This pseudo-static got me a whole day to find a lot of information or did not fix, then asked the master. Finally solved, in this and share with you.Start with the next UrlRewriter.dll and quoteThen add the following code to the inside the Web.
Run Phpinfo () under PHP5.3 versionLocate the Server API Bar display: Apache 2.0 Handlerthinkphp. htaccess inside the original configuration is:Ewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]PHP5.4 version starts running Phpinfo ()Locate the Server API
Run Phpinfo () under PHP5.3 versionLocate the Server API Bar display: Apache 2.0 Handlerthinkphp. htaccess inside the original configuration is:Ewriterule ^ (. *) $ index.php/$1 [qsa,pt,l]PHP5.4 version starts running Phpinfo ()Locate the Server API
First download install Msdnurlrewriting.msi, link address http://pan.baidu.com/s/1c0pRnTu.Locate Rewritertester\bin\urlrewriter.dll in the installation directory to add references to your project.Change the configuration file, Web. config, within
The Chinese language has never been very good. I really don't know how to explain this pathinfo mode. let's talk about the pathinfo mode with a piece of code.
The code is as follows:
Http: // serverName/appName/module/action/id/1/
This is the
ThinkPHP URL rewriting problem. The result I want is nothing more than removing index. php from the URL path. first, configure. htaccessIfModulemod_rewrite.cRewriteEngineonRewriteCond % {REQUEST_FILENAME }! -DRewriteCond % {REQUEST_FI: the result I
In. NET Framework 4Microsoft launched the Route mechanism. This mechanism is not only widely used in MVC, but can also be used in WebForm.
Like Contex. RewritePath (), the Route function is also written in the Global. asax file.
1. Set the default
Generally, when a user logs on to a page, we can determine in the Code whether the current user is logged on. If the user is not logged on, we will redirect to the logon page, and pass the current Url to the logon page through Url parameters. If URL
Tag:div optional cti effect control node stat default solution public static class Webapiconfig { public static void Register ( httpconfiguration config) {config. Routes.maphttproute (name: " default Api ,
URL rewriting Technology in ASP. NET 2.0 [conversion]
ImplementationURLHow many rewrite methods?
LExploitationApplication_beginrequestAndHttpcontextClassRewriteMethod RewritingURLThis method is easy to understand and easy to use.
We sometimes see an address like this: "Why? Type = 12 & id = 34 ", why? There are multiple reasons: First, enhanced urlfriendliness. Remember show-12-34.html "total ratio"/aspx/show. aspx? Type = 12 & id = 34 "is it easy to remember? The second is
How to Use Ajax + URL rewriting:
Error message: 'sys. webforms. pagerequestmanagerservererrorexception: An uknown error occurred while processing the request on the server. The status code returned from the server was: 404.
Add the following
1. Download Quercus:
http://quercus.caucho.com/
Version of course the latest best, because in principle, the new version of PHP more support, but in their own testing to find the latest 4.0.25 there is a problem, so swap 4.0.18 version.
Select File
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.