迅睿CMS框架是一款PHP8高性能·簡單易用的CMS開源開發(fā)框架,基于MIT開源許可協(xié)議發(fā)布,免費(fèi)且不限制商業(yè)使用,是免費(fèi)開源的產(chǎn)品,以萬端互聯(lián)為設(shè)計(jì)理念,支持的微信公眾號、小程序、APP客戶端、移動端網(wǎng)站、PC網(wǎng)站等多終端式管理系統(tǒng)。
聯(lián)系官方銷售客服
1835022288
028-61286886
請問類似上面的目錄規(guī)則 如何設(shè)置,url規(guī)則我已經(jīng)改為{pdirname}/,但是前段頁面打開顯示錯(cuò)誤,麻煩看下
你打開迅睿的開發(fā)者模式(點(diǎn)擊查看開啟方法),然后再訪問這個(gè)頁面看看提示什么具體的錯(cuò)誤信息,再發(fā)給我看看,以便對癥下藥
回復(fù)@迅??蚣芗夹g(shù)-劉和平
提示沒有模板文件 但是實(shí)際上有
你把404.html模板做一個(gè)吧,方便排查錯(cuò)誤
參考文檔:《404錯(cuò)誤頁面》
http://xw.sicuvily.net/news/qiye/
沒有找到這個(gè)頁面: news/qiye,是偽靜態(tài)規(guī)則設(shè)置問題,打開config/rewrite.php內(nèi)容發(fā)給我看看
這個(gè)需要改,代碼復(fù)制給我,感覺里面由多余的代碼,不需要的規(guī)則不要寫在里面去
<?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 [
/***********************下面寫你自己的URL解析規(guī)則********************/
/***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/
"list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2',
/***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/
"([\w]+)" => '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',
];
這是文章的展示結(jié)構(gòu),現(xiàn)在也找不到 麻煩也一起看下 謝謝
<?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 [ "([a-z])\/([0-9]+)/.html(.*)" => 'index.php?c=show&id=$2', "([\w\/]+)" => 'index.php?c=category&dir=$1', ];
參考文檔:《偽靜態(tài)解析規(guī)則》
內(nèi)容頁現(xiàn)在也是這個(gè)情況 能麻煩也把這個(gè)寫好的規(guī)則 發(fā)我下嗎 十分感謝
<?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 [ "([a-z])\/([0-9]+)/.html(.*)" => 'index.php?c=show&id=$2', "([a-z])\/([a-z])\/([0-9]+)/.html(.*)" => 'index.php?c=show&id=$3', "([\w\/]+)" => 'index.php?c=category&dir=$1', ];
傻瓜化生成呀,一條條的復(fù)制測試
回復(fù)@迅??蚣芗夹g(shù)-劉和平 看了下 已經(jīng)解決 十分感謝 ?? ?? ?? ??
你打開迅睿的開發(fā)者模式(點(diǎn)擊查看開啟方法),然后再訪問這個(gè)頁面看看提示什么具體的錯(cuò)誤信息,再發(fā)給我看看,以便對癥下藥
回復(fù)@迅??蚣芗夹g(shù)-劉和平
提示沒有模板文件 但是實(shí)際上有
你把404.html模板做一個(gè)吧,方便排查錯(cuò)誤
參考文檔:《404錯(cuò)誤頁面》
回復(fù)@迅??蚣芗夹g(shù)-劉和平

http://xw.sicuvily.net/news/qiye/
沒有找到這個(gè)頁面: news/qiye,是偽靜態(tài)規(guī)則設(shè)置問題,打開config/rewrite.php內(nèi)容發(fā)給我看看
回復(fù)@迅??蚣芗夹g(shù)-劉和平
這個(gè)需要改,代碼復(fù)制給我,感覺里面由多余的代碼,不需要的規(guī)則不要寫在里面去
回復(fù)@迅??蚣芗夹g(shù)-劉和平
<?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 [
/***********************下面寫你自己的URL解析規(guī)則********************/
/***********************共享欄目測試規(guī)則:欄目列表頁面分頁的偽靜態(tài)解析*************************/
"list\-([\w]+)\-([0-9]+).html(.*)" => 'index.php?c=category&dir=$1&page=$2',
/***********************共享欄目測試規(guī)則:欄目列表頁面的偽靜態(tài)解析*************************/
"([\w]+)" => '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',
];
這是文章的展示結(jié)構(gòu),現(xiàn)在也找不到 麻煩也一起看下 謝謝
參考文檔:《偽靜態(tài)解析規(guī)則》
內(nèi)容頁現(xiàn)在也是這個(gè)情況 能麻煩也把這個(gè)寫好的規(guī)則 發(fā)我下嗎 十分感謝
回復(fù)@迅??蚣芗夹g(shù)-劉和平
傻瓜化生成呀,一條條的復(fù)制測試
回復(fù)@迅??蚣芗夹g(shù)-劉和平 看了下 已經(jīng)解決 十分感謝 ?? ?? ?? ??