Nginx in the use of pseudo static is directly in the nginx.conf write rules, do not need to be like Apache to open the Write module (mod_rewrite) in order to perform pseudo static.
Nginx only need to open the nginx.conf configuration file, write
Article Title: describes the application of Apache rewrite rules. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open
--- This article aims to provide some common URL rewriting methods by using Apache rewrite rules, and provide users with some basic methods and clues for using rewrite rules through common examples.
I. Why rewrite rules?
---- The website is
The use of pseudo-static in nginx directly writes rules in nginx. conf, and does not require pseudo-static operations like apache to enable the write module (mod_rewrite.Nginx only needs to open the nginx. conf configuration file and write the
Nginx-rewrite regular expression matching
Case matching
~ to match case sensitivity~* for case-insensitive matching!~ and!~* are case insensitive and case-insensitive mismatches, respectively.
File and directory matching
-F and!-f are used to
Before the start:I want to say that this article is actually a document I learned when I first came into contact with rewrite. It should be reprinted, but I do not want to specify the original address here, the reason is that most of the
1, Rewirte main function is to implement the URL of the jump, its regular expression is based on the Perl language. Can be based on both server-level (httpd.conf) and directory-level (. htaccess) methods. If you want to use the rewrite module, you
The main function of Rewirte is to implement a URL jump, and its regular expression is based on the Perl language. Can be based on both server-level (httpd.conf) and directory-level (. htaccess) methods. If you want to use the rewrite module, you
Transferred from: http://www.cnblogs.com/top5/archive/2009/08/12/1544098.html1, rewrite rules introduction:The main function of Rewirte is to implement a URL jump, and its regular expression is based on the Perl language. Can be based on both server-
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.