Showing results for 
Search instead for 
Did you mean: 

Magento 2.4 Redirect not working

Magento 2.4 Redirect not working

We had an issue where we deleted a category by mistake and we have that URL sent out to all our customers.


I recreated the category on a different page and when using the same URL as the deleted category and it kept sending me to a 404 page.


I also tried doing a URL rewrite in Magento to the new category and that didn't work either.




Also tried below code in .htaccess


RewriteRule ^performance-training/recovery-flexibility-10.html /injury-rehab-prehab/recovery-flexibility.html? [L,R=301]


Has anyone any idea why:

Using the old url for the new category won't work

The Magento URL redirect isn't working

The ,htacess code isn't working?


Re: Magento 2.4 Redirect not working

Hello @Kerank 


There will be a Magento cache issue. Please flush your Magento cache and try again.


If you find our reply helpful, please give us kudos.

An award-winning North American Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

Thank You,

WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Location: 150 King St. W. Toronto, ON M5H 1J9