迅睿開源框架是一款PHP8高性能·簡單易用的PHP開源開發(fā)框架, 基于MIT開源許可協(xié)議發(fā)布,不限制商業(yè)使用,以多端互聯(lián)為設(shè)計理念, 支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
業(yè)務(wù)經(jīng)理
微信掃描以上二維碼
028-61286886
技術(shù)咨詢
幫忙啊 急啊 資訊都是404頁面 是有show.html模板的啊第一個問題:我的程序不知道啥了 前兩天好好的,突然所有的資訊都是404頁面了https://www.fangyuanw.cn/show-5449.html 不管點(diǎn)擊哪個資訊詳情頁都是404
還有在模塊表單 里面的新建一個字段 有個圖片專用字段不明白這個是什么意思,而官方設(shè)置的開啟關(guān)閉按鈕 有點(diǎn)看不明白
應(yīng)該是rewrite.php的規(guī)則文件有問題
回復(fù)@小波工作室--標(biāo)簽和API大師
<?php /** * URL解析規(guī)則 * 例如: 114.html 對應(yīng) index.php?s=demo&c=show&id=114 * 可以解析: "114.html" => 'index.php?s=demo&c=show&id=114', * 動態(tài)id解析: "([0-9]+).html" => 'index.php?s=demo&c=show&id=$1', */ return [ 'sitemap.txt' => 'index.php?s=sitemap', // 地圖規(guī)則 'sitemap.xml' => 'index.php?s=sitemap&c=home&m=xml', // 地圖規(guī)則 /***********************下面寫你自己的URL解析規(guī)則********************/ /***********************關(guān)鍵詞庫模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "tag\/(.+).html(.*)" => 'index.php?s=tag&name=$1', /***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2', /***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "list\-([\w]+).html(.*)" => 'index.php?c=category&dir=$1', /***********************共享欄目測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "show\-([0-9]+)\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1&page=$2', /***********************共享欄目測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "show\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(帶分頁)*************************/ "([a-z]+)\/search\/(.*).html(.*)" => 'index.php?s=$1&c=search&rewrite=$2', /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(不帶分頁)*************************/ "([a-z]+)\/search.html(.*)" => 'index.php?s=$1&c=search', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則:模塊首頁的偽靜態(tài)解析*************************/ "([a-z]+).html(.*)" => 'index.php?s=$1', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2', "([a-z]+)\/xiangqing\/([0-9]+).html(.*)" => 'index.php?s=$1&c=xiangqing&id=$2', "([a-z]+)\/dongtai\/([0-9]+).html(.*)" => 'index.php?s=$1&c=dongtai&id=$2', "([a-z]+)\/huxing\/([0-9]+).html(.*)" => 'index.php?s=$1&c=huxing&id=$2', "([a-z]+)\/photo\/([0-9]+).html(.*)" => 'index.php?s=$1&c=photo&id=$2', "([a-z]+)\/video\/([0-9]+).html(.*)" => 'index.php?s=$1&c=video&id=$2', ];
這偽靜態(tài)有什么問題呀?
應(yīng)該是rewrite.php的規(guī)則文件有問題
回復(fù)@小波工作室--標(biāo)簽和API大師
<?php /** * URL解析規(guī)則 * 例如: 114.html 對應(yīng) index.php?s=demo&c=show&id=114 * 可以解析: "114.html" => 'index.php?s=demo&c=show&id=114', * 動態(tài)id解析: "([0-9]+).html" => 'index.php?s=demo&c=show&id=$1', */ return [ 'sitemap.txt' => 'index.php?s=sitemap', // 地圖規(guī)則 'sitemap.xml' => 'index.php?s=sitemap&c=home&m=xml', // 地圖規(guī)則 /***********************下面寫你自己的URL解析規(guī)則********************/ /***********************關(guān)鍵詞庫模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "tag\/(.+).html(.*)" => 'index.php?s=tag&name=$1', /***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2', /***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "list\-([\w]+).html(.*)" => 'index.php?c=category&dir=$1', /***********************共享欄目測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "show\-([0-9]+)\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1&page=$2', /***********************共享欄目測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "show\-([0-9]+).html(.*)" => 'index.php?c=show&id=$1', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(帶分頁)*************************/ "([a-z]+)\/search\/(.*).html(.*)" => 'index.php?s=$1&c=search&rewrite=$2', /***********************獨(dú)立模塊測試規(guī)則、共享模塊測試規(guī)則:搜索頁(不帶分頁)*************************/ "([a-z]+)\/search.html(.*)" => 'index.php?s=$1&c=search', ////////////////////////////////////////////////////////////////////////////////////// /***********************獨(dú)立模塊測試規(guī)則:模塊首頁的偽靜態(tài)解析*************************/ "([a-z]+).html(.*)" => 'index.php?s=$1', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/list\/([0-9]+).html(.*)" => 'index.php?s=$1&c=category&id=$2', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面分頁的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+)\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2&page=$3', /***********************獨(dú)立模塊測試規(guī)則:內(nèi)容頁面的偽靜態(tài)解析*************************/ "([a-z]+)\/show\/([0-9]+).html(.*)" => 'index.php?s=$1&c=show&id=$2', "([a-z]+)\/xiangqing\/([0-9]+).html(.*)" => 'index.php?s=$1&c=xiangqing&id=$2', "([a-z]+)\/dongtai\/([0-9]+).html(.*)" => 'index.php?s=$1&c=dongtai&id=$2', "([a-z]+)\/huxing\/([0-9]+).html(.*)" => 'index.php?s=$1&c=huxing&id=$2', "([a-z]+)\/photo\/([0-9]+).html(.*)" => 'index.php?s=$1&c=photo&id=$2', "([a-z]+)\/video\/([0-9]+).html(.*)" => 'index.php?s=$1&c=video&id=$2', ];這偽靜態(tài)有什么問題呀?