Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

suleman2795's avatar

403 forbidden but page working fine on a single route Laravel

In my live project, I face an issue 403 status code forbidding only one route, not every route but the page is working fine to get data properly I don't know why the status code is 403 I don't know how to solve this issue. I checked my file permission in cpanel permission allowed properly kindly tell me how to solve this issue.

0 likes
2 replies
suleman2795's avatar

@vincent15000

// BLOG SECTION Route::get('blog','Front\FrontendController@blog')->name('front.blog'); Route::get('blog/{title}','Front\FrontendController@blogshow')->name('front.blogshow'); Route::get('blog/category/{slug}','Front\FrontendController@blogcategory')->name('front.blogcategory'); Route::get('blog/tag/{slug}','Front\FrontendController@blogtags')->name('front.blogtags'); Route::get('blog-search','Front\FrontendController@blogsearch')->name('front.blogsearch'); Route::get('blog/archive/{slug}','Front\FrontendController@blogarchive')->name('front.blogarchive');

these are the route in these routes 2nd one blog/{title} route display 403 status code as forbidden one more important thing is when I run this project on the local server no issue in this route. 403 status forbidden only shows when the project is live

Please or to participate in this conversation.