Laravel framework rewrite settings under nginx

PHP中文网
Release: 2023-02-28 21:04:01
Original
2186 people have browsed it

nginx下laravel框架rewrite的设置

在nginx的vhost站点配置文件中加入以下内容即可

if (!-d$request_filename) { rewrite ^/(.+)/$ /$1 permanent; }if ($request_uri ~* index/?$) { rewrite ^/(.*)/index/?$ /$1 permanent; }if (!-e$request_filename) { rewrite ^/(.*)$ /index.php?/$1 last;break; }
Copy after login
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(' ').text(i)); }; $numbering.fadeIn(1700); }); });
Copy after login

以上就是nginx下laravel框架rewrite的设置的内容,更多相关内容请关注PHP中文网(m.sbmmt.com)!

相关文章:

windows服务器下iis伪静态设置方法(附rewrite伪静态组件)

apache Rewrite模块重写功能开启及检测实现

Nginx详细的Rewrite伪静态规则步骤

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!