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
Recently, I tried to configure and install a website on VPs. VPs installed lnmp (Linux + nginx + MySQL + PHP) and often encountered some problems during rule resetting, directly using Apache rules to nginx does not work. In the past, Apache rewrite
This article aims to provide users with basic methods and clues on how to use Apache rewrite rules to solve the title of some common URL Rewrite methods.
This article aims to provide you with basic methods and clues on how to use Apache rewrite
--- 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
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
Why do I need to use rewrite rules
----The life of the site is constantly updated and maintained, according to the needs of the business development of the transfer server maintenance, the organization of the directory structure, change the URL or
1. Nginx Rewrite rules related directives
Nginx rewrite rules related directives have if, rewrite, set, return, break, etc., where rewrite is the most critical instruction. A simple
The Nginx rewrite rule syntax is as follows:
The
Comparison between nginx rewrite rules and apacheCommands related to nginx rewrite rules include if, rewrite, set, return, and break. rewrite is the most critical command. A simple nginx rewrite rule syntax is as follows: Rewrite ^/B/(. * tutorial
Comparison between nginx rewrite Rules and apache
Commands related to nginx rewrite Rules include if, rewrite, set, return, and break. rewrite is the most critical command. A simple nginx rewrite rule syntax is as follows: Rewrite ^/B/(. * tutorial .
1. IntroductionApached's rewrite function, which is the Mod_rewrite module function, is a module of Apache. It's very powerful and can manipulate all parts of the URL.So we can rewrite the URL and give the user a generous URL that can be converted
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.