thincmf的NGINX僞靜態寫法

location / { if (!-e $request_filename){ rewrite ^/(.*)$ /index.php?s=$1 last;rewrite ^api/(.*)$ /api.php?s=$1 last; } }

 

 實現cname效果

if ($host ~* www.pan***.com) {

rewrite ^/(.*)$ https://weidian.com/item.html?itemID=1578385304 permanent;

}

 

 

發佈了22 篇原創文章 · 獲贊 78 · 訪問量 38萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章