有人能幫助我下面的僞代碼轉換成由Helicon Tech's ISAPI_Rewrite module理解代碼:Helicon的技術 - 的ISAPI_Rewrite:重寫規則對特定領域
if (domain == something.com OR domain == www.something.com)
{
// The rules inside this scope will only apply to the domain:
// something.com/www.something.com
// This should match "something.com/test" and/or "www.something.com/test"
RewriteRule /something /something/something.aspx
}
if (domain == test.com OR domain == www.test.com)
{
// The rules inside this scope will only apply to the domain:
// test.com/www.test.com
// This should match "test.com/test" and/or "www.test.com/test"
RewriteRule /test /test/test.aspx
}
的documentation非常混亂給我。
任何和所有的幫助,非常感謝。
我認爲新的語法應該是%{HTTP_HOST}(下劃線的,而不是結腸)。 – 2009-01-21 13:28:55
這是他們自己的語法轉換工具給我的。 – Tomalak 2009-01-21 13:29:50