版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/jmlxx/article/details/83818536
官网兼容以前路径访问,添加路径跳转
手机端路由:laravel 路由
Route::name('wap-index2')->get('/phone', 'Wap\IndexController@index');
Route::get('/phone',function(){
return redirect()->route('wap-index2');
});
pc端路由:laravel 路由,以前默认使用了domain/index.html 导致项目更新默认访问nginx配置成功页面(welcome to nginx),解决办法,重写配置,顺便301跳转
if ($request_uri = /index.html) {
return 301 http://domain.com;
}