Hi, I have a Wix website using the CMS extensively.
We have collections of shops - each of which have their own dynamic Item pages + we also have List dynamic pages of shops (e.g. London shops → List page listing Item pages)
Google indexed some of our pages and we’re ranking really well for them, however some shops have closed etc. We’re ranking 1st or 2nd on Google for their Item pages and would like to redirect these “broken“ indexed pages to the List page.
Say, you have Shop 1 and Shop 2 with pages /shops/1 and /shops/2 - both rank first on Google for specific queries.
All of the sudden Shop 1 closes so /shops/1 returns a 404 (not in the CMS anymore) but it still ranks 1st on Google for specific searches. How can I redirect /shops/1 to /shops to redirect readers to our listing page?
We have thousands of entries in our CMS so doing manual redirects doesn’t really work. I’d like to have a safe “catch all“ that redirects all broken links /shops/ to /shops/ as a fail safe.
How can I do this?
Is this doable with a Router.js?