#on server block
##necessary if using a multi-site plugin
server_name_in_redirect off;
##necessary if running Nginx behind a reverse-proxy
port_in_redirect off;
rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last;
if (!-e $request_filename) {
rewrite ^.+?(/wp-.*) $1 last;
rewrite ^.+?(/.*.php)$ $1 last;
rewrite ^ /index.php last;
}
Wordpress 3 的Nginx Retwrite規則
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章
在Word中調用外部程序兩法
nizlwzmb
2019-02-23 13:58:29
Office2010特色之Word窗口截圖
tianzixuan
2019-02-23 13:37:36
Word 2010也可以屏幕取詞翻譯
tianzixuan
2019-02-23 13:32:44
word安全模式啓動問題
Monkey001
2019-02-23 13:19:41
在word中,選中的文字,用退格鍵Backspace刪除時,刪除不了,
s0lo
2019-02-23 13:15:56
word文檔受保護 無法編輯 複製 等操作
s0lo
2019-02-23 13:15:56
如何刪除WORD空白頁
seasonzh
2019-02-23 12:56:41
通過樣式調整input 中password text默認長度
yzzh9
2019-02-23 00:23:59
新版Nginx1.17体系化深度精讲 给开发和运维的刚需课程
wy53780
2020-04-23 14:03:13
nignx 負載均衡的幾種算法介紹
jungiewolf
2019-02-23 00:35:55
consul + Nginx 實現nginx代理自動載入backed的服務器, 實現fullnat效果
tianshuai369
2019-02-23 00:34:58
Ubuntu14.04搭建LNMP平臺
海龍s
2019-02-23 00:30:46
Nginx Web服務應用
yuanxingdexin
2019-02-23 00:30:46
CentOS5.5下Nginx的安裝配置詳解
huanjie6
2019-02-23 00:29:23