laravel nginx 伪静态

2021-06-22  本文已影响0人  jtw

在public文件夹下新增nginx.htaccess文件

下面是文件内容

location / {
                # First attempt to serve request as file, then
                # as directory, then fall back to displaying a 404.
                # try_files $uri $uri/ =404;
                try_files $uri $uri/ /index.php?$query_string;
}
上一篇 下一篇

猜你喜欢

热点阅读