Support the ongoing development of Laravel.io →
Requests Architecture

Hi,

I want to create url rewriting functionality (think; like Magento has - allowing me to redirect one url to another with a selected statuscode; e.g. 301) in my CMS for a "client" I have. I wonder how this would work.

The database is already setup to handle it, but I need to be able to redirect the visitor before routing (I imagine?) but I can't find an event that is fired before routing, that will actually work for this purpose.

Any suggestions are more than welcome.

Thanks!

Last updated 3 years ago.
0

I figured out how to.

Should you be wondering, I registered a new middleware in my Kernel.php (app/Http/Kernel.php) in $middleware

That checks for rewrites.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

LasseRafn lasserafn Joined 1 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.