Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to define nginx pseudo-static rules

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces how to define nginx pseudo-static rules related knowledge, detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone will have some gains after reading this article on how to define nginx pseudo-static rules, let's take a look at it.

1, nginx pseudo-dynamic delimitation rules

rewrite ^(.*)/ tags.html $1/tags.php;rewrite ^(.*)/ tags/(.*)- 1.html $1/tags.php?/$ 2/$3;

or

rewrite ^([^\.]*)/ tags.html $1/tags.php;rewrite ^([^\.]*)/ tags/(.*)- ([0-9]+).html $1/tags.php?/$ 2/$3;

2.htaccess file pseudo-audio provisions

RewriteBase / RewriteRule ^tags\.html$ /tags.php$1 RewriteRule ^tags/(.*)- ([0-9]+).html$ /tags.php?/$ 1/$2

3. IIS website.config file, pseudo-message rules:

4. Pseudo-dynamic regulation of httpd.ini file

RewriteRule ^(.*)/ tags\.html $1/tags\.php RewriteRule ^(.*)/ tags/(.*)- ([0-9]+).html $1/tags\.php\?$ 2/$3 About "How to define nginx pseudo-static rules" The content of this article is introduced here, thank you for reading! I believe everyone has a certain understanding of the knowledge of "how to define nginx pseudo-static rules." If you still want to learn more knowledge, you are welcome to pay attention to the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report