迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發框架,基于MIT開源許可協議發布,免費且不限制商業使用,是免費開源的產品,以萬端互聯為設計理念,支持的微信公眾號、小程序、APP客戶端、移動端網站、PC網站等多終端式管理系統。
聯系官方銷售客服
1835022288
028-61286886
/product/?test=123
這樣的偽靜態規則該怎么寫呢?
現在是 "([a-z0-9]+)\/?(.+)" => "index.php?c=category&dir=$1" 訪問不了
帶問號不好偽靜態呢,為什么要問號呢
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1"
這樣試一試
回復@迅睿框架技術-景攸 這是競價推廣自動添加的參數
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1" 這樣可以訪問
但是正常的 /product/ 不可以訪問了
"([a-z0-9]+)" => "index.php?c=category&dir=$1",
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1",
寫兩個
帶問號不好偽靜態呢,為什么要問號呢
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1"
這樣試一試
回復@迅睿框架技術-景攸 這是競價推廣自動添加的參數
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1" 這樣可以訪問
但是正常的 /product/ 不可以訪問了
"([a-z0-9]+)" => "index.php?c=category&dir=$1",
"([a-z0-9]+)\/\?(.+)" => "index.php?c=category&dir=$1",
寫兩個