Sometimes when people click on a search result that has a broken URL like
https://www.example.com/catalogsearch/result/?q= they will get taken to a 404 or 503 page.
Sometimes it will show the Maintenance page like so:
We’ll be back soon! This website is currently undergoing scheduled maintenance and will be back online shortly. Thank you for your patience.
I just want to redirect these type of broken search links back to the homepage but the URL Rewrites don't seem to work in this case.
Request Path =
Target Path =
Redirect Type = Permanent (301)
Any ideas why it's not working? Any help would be greatly appreciated.
Magento 2.3.3-p1 Commerce Cloud