[英]How do I convert this IIS URL Rewrite Rule for .htaccess Apache?
How do I convert this IIS URL Rewrite Rule for .htaccess Apache? 如何为.htaccess Apache转换此IIS URL重写规则?
<rule name="View Trades/Wants">
<match url="^([^]+)/PD([^]+)/" />
<action type="Rewrite" url="trade.php?type={R:1}&id={R:2}" />
</rule>
RewriteRule ^([^]+)/PD([^]+)/ /trade.php?type=$1&id=$2 [L]
如果您还没有,请确保打开重写引擎:
RewriteEngine On
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.