跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • 求大佬帮忙转换个伪静态规则
未分類
7 6 月 2020

求大佬帮忙转换个伪静态规则

inkedus 大佬有话说 :

求大佬帮忙转换个伪静态规则

请大佬帮我把apache转nginx
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?page=$1
</IfModule>

宝塔转换工具试过了,不严谨https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

W4ter 大佬有话说 :

if (!-f $request_filename && !-d $request_filename) {
    rewrite ^/(.*)$ /index.php?page=$1 last;
}

iks 大佬有话说 :

WordPress么?https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

inkedus 大佬有话说 :

iks 大佬有话说 : 2020-6-7 20:42
WordPress么?

不是https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

inkedus 大佬有话说 :

W4ter 大佬有话说 : 2020-6-7 20:45
if (!-f $request_filename && !-d $request_filename) {
    rewrite ^/(.*)$ /index.php?page=$1 last;
} …

谢谢老哥,但是好像还是失败了https://cdn.jsdelivr.net/gh/hishis/forum-master/public/images/patch.gif

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具