将IIS规则转换为Apache / HTACCESS重写

时间:2010-10-14 17:50:52

标签: apache .htaccess iis

如何将IIS重写规则转换为Apache / htaccess重写规则?

具体来说,我希望将此IIS规则转换为Apache:

<rule name="SEO">
     <match url="^([^/]+/)*([^/]+)\.(\d+)$" ignoreCase="false" />
     <action type="Rewrite" url="index.php?id={R:3}" appendQueryString="false" />
</rule>

1 个答案:

答案 0 :(得分:0)

好的,这是:

RewriteRule ([^/]+/)*([^/]+)\.(\d+)$ index.php?id=$3