How to add other platform URLs support
This article demonstrates how to add other platform URLs to our platform.
Why and when do we need this?
Consider scenarios where we migrate a site from another platform. The previous platform may have old URL patterns that do not match our shop URLs. For example, the Dexter site currently has three URLs that are frequently accessed by bots or users with saved old links. When these URLs are accessed, they return a 404 error. To address this issue, we introduced this functionality.
Instructions
Open advanced settings of home page and add platform specific Application(apphook). for example: Shopify, eTailPet
Save and Publish the page.
It will add platform specific URLs supports to the website.
eTailPet Apphook
Currently, this app-hook supports below URLs:
domain.com/product(s)/<product:slug> - Redirects to the product detail page
domain.com/product(s)/<category:slug>/<product:slug>/ - Redirects to the product detail page
domain.com/product(s)/<location:slug>/<product:slug>/ - Redirects to the product detail page
product(s) - will work for both product and productsExample site: https://www.dexterspetshop.ca/ (https://website0232.pinogy.dev/)
Shopify Apphook
Currently, this app-hook supports below URLs:
domain.com/collections/all - Redirects to the product list page
domain.com/collections/<category:slug> - Redirects to the product list page
domain.com/collections/<category:slug>/products/<product:slug> - Redirects to the product detail page
domain.com/product(s)/<product:slug> - Redirects to the product detail page
product(s) - will work for both product and productsExample site: https://www.fourmuddypaws.com/ (https://website0234.pinogy.dev/)
Developer Note: do not add URLs like domain.com/<category:slug>/<product:slug> or domain.com/<product:slug> in the apphook because they may conflict with actual website pages. For example, domain.com/<product:slug> can match all pages with one slug such as contact-us, about-us and others. Ensure no URL pattern conflicts with existing URLs.
We can add more platform and more URLs in existing platform support as needed. Please ask the developer for the latest URLs list for this functionality.