2010-10-14 75 views
0

如何將IIS重寫規則轉換爲Apache/htaccess重寫規則?將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> 

回答

0

好了,那就是:

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