我如何将Laravel 7散装旧URL重定向到新URL? 4000+旧网址
我想将旧URL重定向到新的URL
旧URL: http://example.com/productame.com/productsite-reviews
new url: http://example.com/reviews/reviews/productsite.com
问题我有超过4000多个URL。我们可以在没有.htaccess文件的情况下将旧URL重定向到新URL吗?
这是我的家路由
路由:: get('/','homecontroller') - > name('home');
是否有任何方法可以在不编写HTACCESS代码的情况下重定向这些URL?
I want to redirect my Old URL to New URL
OLD URL : http://example.com/productsite-reviews
New URL : http://example.com/reviews/productsite.com
The problem is i have more than 4000+ URLS. Can we redirect the old URL to New URL without .htaccess file ?
this is my home route
Route::get('/', 'HomeController')->name( 'home' );
Is there any way to redirect these URL in bulk without writing htaccess code?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
首先,使用将当前路线更改为新控制器
,然后将当前路线重定向
First of all, redirect it to new controller using
And then change the current route to