seo icon indicating copy to clipboard operation
seo copied to clipboard

Routing getting in the way

Open jamiematrix opened this issue 3 years ago • 1 comments

Am I right in thinking if I have some custom routes in routes.php then that functionality takes over any redirects set?

If that's true, is there a way round? Or is it possible to use the specified template in routes.php to lookup the redirects and redirect accordingly?

jamiematrix avatar May 26 '22 22:05 jamiematrix

I'm running into a similar issue. I have some routes defined in the admin, as well as some 301 redirects for urls matching those routes that no longer exist. However, the redirects don't work for those urls, and I'm always sent to the routed url.

It seems like Craft is matching to the configured route as higher priority than the redirects.

Is there a work around for this?

idawgik avatar Oct 10 '22 16:10 idawgik