?匹配方式分兩部分
1.path部分,2.參數部分匹配支持?*$?兩種通配符?*? 表示任何有效字符的 0 個或多個個案
?$? 表示網址結束
path部分與google匹配方式保持一致,也就是只有/或是*開頭的規則才有機會匹配上?/?匹配根目錄以及任何下級網址?/fish??/fish?開頭的匹配項* ?/fish?* ?/fish.html?* ?/fish/salmon.html?* ?/fishheads?* ?/fishheads/yummy.html?* ?/fish.php?id=anything?不匹配項* ?/Fish.asp?* ?/catfish?* ?/?id=fish??/fish\*?等同于 ?/fish?
結尾的通配符會被忽略
匹配項
* ?/fish?* ?/fish.html?* ?/fish/salmon.html?* ?/fishheads?* ?/fishheads/yummy.html?* ?/fish.php?id=anything?不匹配項:* ?/Fish.asp?* ?/catfish?* ?/?id=fish??/fish/?結尾的斜杠表示此項與此文件夾中的任何內容均匹配
匹配項
* ?/fish/?* ?/fish/?id=anything?* ?/fish/salmon.htm?不匹配項:* ?/fish?* ?/fish.html?* ?/Fish/Salmon.asp??/\*.php?匹配項:* ?/filename.php?* ?/folder/filename.php?* ?/folder/filename.php?parameters?* ?/folder/any.php.file.html?* ?/filename.php/?不匹配項:* ?/?(即使其映射到 /index.php)* ?/windows.PHP??/\*.php$?匹配項:* ?/filename.php?* ?/folder/filename.php?不匹配項:* ?/filename.php?parameters?* ?/filename.php/?* ?/filename.php5?* ?/windows.PHP??/fish\*.php?匹配項:* ?/fish.php?* ?/fishheads/catfish.php?parameters?不匹配項: ?/Fish.PHP??\*/ `` fish `` /?包含/fish/的path匹配項:* ?/search/fish/filename.php?parameters?* ?/fish/filename.php?parameters?不匹配項:* ?/Fish.PHP??.htm$?錯誤寫法,不能與.htm結尾的Url匹配參數部分支持參數無序匹配,參數key value均支持?\*?通配符?/home.php?mod=?value可以是任意值匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&mod=xxx?不匹配項* ?/home.php?c=0&smod=939?* ?/home.php?c=0&mods=939??/home.php?mod=\*?value可以是任意值,等同于?/home.php?mod=?匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&mod=xxx?不匹配項* ?/home.php?c=0&smod=939?* ?/home.php?c=0&mods=939??/home.php?mod=9?參數值要求完全相對才匹配匹配項* ?/home.php?c=0&mod=9?不匹配項* ?/home.php?c=0&mod=939??/home.php?mod=9\*?value以9開頭的匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&mod=9xx?* ?/home.php?c=0&mod=9?不匹配項* ?/home.php?c=0&mod=3xx?* ?/home.php?c=0&mod=39x??/home.php?mod=\*9?value以9結尾匹配項* ?/home.php?c=0&mod=xx9?不匹配項* ?/home.php?c=0&mod=34?* ?/home.php?c=0&mods=9?* ?/home.php?c=0&mod=93??/home.php?mod=\*39?value以39結尾的匹配項* ?/home.php?c=0&mod=939?不匹配項* ?/home.php?c=0&mod=9319??/home.php?\*mod=939?key以mod結尾的匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&smod=939?不匹配項* ?/home.php?c=0&mods=939??/home.php?mod\*=939?key以mod開頭的匹配項* ?/home.php?c=0&mods=939?* ?/home.php?c=0&mod=939?不匹配項* ?/home.php?c=0&smod=939??/home.php?\*mod\*=939?key包含mod字符串匹配項* ?/home.php?c=0&smods=939?* ?/home.php?c=0&mods=939?* ?/home.php?c=0&mod=939?* ?/home.php?c=0&smod=939?不匹配項* ?/home.php?c=0&msod=939??/home.php?\*mod\*=\*39\*?key 包括mod字符串,value包含39字符串匹配項* ?/home.php?c=0&smods=939?* ?/home.php?c=0&smod=39?* ?/home.php?c=0&mod=939?不匹配項* ?/home.php?c=0&msod=93??/home.php?mod?參數部分采用前綴匹配匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&mods=939?不匹配* ?/home.php?c=0&smod=939??/home.php?mod\*?匹配項* ?/home.php?c=0&mod=939?* ?/home.php?c=0&mods=939?不匹配項* ?/home.php?c=0&smod=34來源:頭條搜索站長平臺
請立即點擊咨詢我們或撥打咨詢熱線: 18942620423,我們會詳細為你一一解答你心中的疑難。項目經理在線