2.8以下版本安裝過的模塊統(tǒng)稱為老模塊,2.8以上版本在模塊管理即可看到是否是獨立模塊
一、設(shè)置方法
在模塊管理,選擇一個獨立模塊,點 “站點管理”;

然后在選擇你要設(shè)置的站點,并選擇一個URL規(guī)則;

選設(shè)置完成之后,更新緩存,然后再到此模塊菜單下,內(nèi)容維護菜單,選擇更新URL。
二、規(guī)則說明
1、模塊首頁(如果模塊綁定過域名,那么次規(guī)則將會失效)
你可以寫任意名稱,例如新聞模塊,你可以在規(guī)則里面填寫:
xinwen.html
那么,你就可以通過xinwen.html來訪問新聞模塊的首頁了
解析規(guī)則(config/rewirte.php):
"xinwen.html" => "index.php?s=news",
前面部分是新聞規(guī)則,后面部分是新聞的動態(tài)訪問頁面
2、模塊欄目頁
欄目訪問頁面舉例:
/news/list-999.html 默認地址
/news/list-999-2.html 分頁地址
URL規(guī)則:
news/list-{id}.html 默認地址
news/list-{id}-{page}.html 分頁地址對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/list-([0-9]+).html" => "index.php?s=news&c=category&id=$1", "news/list-([0-9]+)-([0-9+]).html" => "index.php?s=news&c=category&id=$1&page=$2",
3、模塊內(nèi)容頁
內(nèi)容訪問頁面舉例:
/news/show-999.html 默認地址
/news/show-999-2.html 分頁地址
URL規(guī)則:
news/show-{id}.html 默認地址
news/show-{id}-{page}.html 分頁地址對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/show-([0-9]+).html" => "index.php?s=news&c=show&id=$1", "news/show-([0-9]+)-([0-9+]).html" => "index.php?s=news&c=show&id=$1&page=$2",
4、模塊擴展頁
內(nèi)容擴展訪問頁面舉例:
/news/extend-999.html 默認地址
/news/extend-999-2.html 分頁地址
URL規(guī)則:
news/extend-{id}.html 默認地址
news/extend-{id}-{page}.html 分頁地址對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/extend-([0-9]+).html" => "index.php?s=news&c=extend&id=$1", "news/extend-([0-9]+)-([0-9+]).html" => "index.php?s=news&c=extend&id=$1&page=$2",
5、模塊Tag頁面
訪問頁面舉例:
/news/tag-my.html 默認地址
/news/tag-my-2.html 分頁地址
my表示tag的英文字母標識
URL規(guī)則:
news/tag-{tag}.html 默認地址
news/tag-{tag}-{page}.html 分頁地址對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/tag-(.+).html" => "index.php?s=news&c=tag&name=$1", "news/tag-(.+)-([0-9+]).html" => "index.php?s=news&c=tag&name=$1&page=$2",
6、模塊內(nèi)容搜索頁面
直接訪問搜索頁面 /news/search.html
那么規(guī)則寫成:
/news/search.html
對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/search.html" => "index.php?s=news&c=search",
附帶參數(shù)的搜索頁面 /news/search-catid-2-city-beijin.html
那么規(guī)則寫成:
/news/search-{param}.html對應(yīng)的解析規(guī)則(config/rewirte.php):
"news/search-(.+).html" => "index.php?s=news&c=search&rewirte=$1",