Home >Backend Development >PHP Tutorial >Laravel framework rewrite settings under nginx
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; }
').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i <= lines; i++) { $numbering.append($(' ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就是nginx下laravel框架rewrite的设置的内容,更多相关内容请关注PHP中文网(www.php.cn)!
相关文章: