How do I convert this IIS URL Rewrite Rule for .htaccess Apache?
<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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.