Allen 2020-06-08 11:29:10 10012 0 0 0 0
来源:http://bbs.hyphp.cn/t/5419.html

宝塔带有设置伪静态写入地方,但是规则需要自己写


如果是Nginx填入

1
2
3
4
if (!-e $request_filename) {
 rewrite  ^(.*)$  /index.php?s=$1  last;
 break;
}

如果是Apache填入

1
2
3
4
5
6
7
<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>


如果是IIS填入

1
2
3
4
5
6
7

【版權聲明】
本文爲原創,遵循CC 4.0 BY-SA版權協議!轉載時請附上原文鏈接及本聲明。
原文鏈接:https://tdlib.com/am.php?t=BfYcJptzYIx4
Tag: HYBBS 伪静态
我也要發一個   ·   返回首頁   ·   返回[HYBBS]   ·   前一個   ·   下一個
歡迎評論
未登錄,
請先 [ 註冊 ] or [ 登錄 ]
(一分鍾即可完成註冊!)
返回首頁     ·   返回[HYBBS]   ·   返回頂部