寶塔中phpcms設置nginx偽靜態
來歷:未知
編輯:小螞蟻站長
時候:2019-12-28 22:42:32
瀏覽:次
寶塔Linux面板站點自帶的偽靜態里,phpcms是老版本的。
須要修改成,另存為模版。
須要修改成,另存為模版。
location / {
if (!-f $request_filename){
rewrite (.*) /index.php;
}
rewrite ^/show-([0-9]+)-([0-9]+)-([0-9]+).html /index.phpm=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/content-([0-9]+)-([0-9]+)-([0-9]+).html /index.phpm=content&c=index&a=show&catid=$1&id=$2&page=$3 last;
rewrite ^/list-([0-9]+)-([0-9]+).html /index.phpm=content&c=index&a=lists&catid=$1&page=$2 last;
rewrite ^/tag-([^\.]*)-([0-9]+)-([0-9]+).html /index.phpm=content&c=tag&catid=$2&tag=$1&page=$3 last;
rewrite ^/comment-([0-9]+)-([0-9]+)-([0-9]+).html /index.phpm=comment&c=index&a=init&commentid=content_$1-$2-$3 last;
}
而后[軟件辦理]-[Nginx] 設置-web辦事-重載設置裝備擺設
實現了。
上一篇:PHPCMS網站辦理體系毛病報告頁面存在跨站劇本縫隙
下一篇:不了
下一篇:不了
相干文章保舉:
熱點瀏覽保舉:
圖文精選:
-
裝置PHPCMS網站內容辦理體系教程
(一)裝置前的籌辦 Phpcms 具有跨平臺特征,能夠運轉于 Linux/FreeBSD/Unix 及微軟...
-
PHPCMS裝置利用教程
phpcms v9若何裝置...