简体   繁体   English

为 IIS 重写 web 服务器 apache

[英]Rewrite web server apache for IIS

I need to translate htaccess rewrite rule for a IIS web server, can you help me with the sintax?我需要为 IIS Web 服务器翻译 htaccess 重写规则,你能帮我翻译语法吗? for example:例如:

RewriteCond %{QUERY_STRING} ^orderby=([0-9]+)&pagesize=([0-9]+)&pagenumber([0-9]+)$
RewriteRule ^[OLD-SLUG]$ https://www.[DOMAIN].it/[NEW-SLUG]? [R=301,L]

Or:要么:

RewriteRule ^[OLD-SLUG]$ - [G]

Thanks谢谢

Many PHP applications currently ship with rewrite rules as part of their .htaccess file.许多 PHP 应用程序当前附带重写规则作为其 .htaccess 文件的一部分。 These rules tell Apache's mod_rewrite how and when to rewrite incoming requests.这些规则告诉 Apache 的 mod_rewrite 如何以及何时重写传入的请求。 The IIS URL Rewrite module can read these rules and translate them into URL Rewrite rules. IIS URL Rewrite 模块可以读取这些规则并将它们转换为 URL Rewrite 规则。

For more information about importing Apache mod_rewrite rules, see: Importing Apache mod_rewrite Rules .有关导入 Apache mod_rewrite 规则的更多信息,请参阅: 导入 Apache mod_rewrite 规则

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM