直接在對應的vhosts.conf組態檔的location / {}中添加以下內容:
location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; }
具體操作程序如下:
1、找到對應的vhosts.conf組態檔

2、選擇所需要配置重寫url的站點

搞定!
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/102119.html
標籤:PHP
