laravel-nginx 配置隱藏index.php

server {
listen 80;
server_name localhost;php

#charset koi8-r;html

#access_log logs/host.access.log main;
root "D:/phpStudy/WWW/m.idaipai.com/public";
location / {
index index.html index.htm index.php l.php;
autoindex on;
if (!-e $request_filename) {
rewrite ^/(.*)$ /index.php/$1;
}
}server

}htm

相關文章
相關標籤/搜索