Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi there,
I know that seems a bit strange, but wee need to redirect the store's homepage to an internal page, and obviously (to make things easier 😅) we need it to be a server-side 301 redirect.
I don't have a direct access myself to the store's dashboard to verify, so I'm asking you, do the redirection built-in tool allows to add the homepage as an URL to redirect ? In someone's screenshot I've seen an error message "Path cannot be empty" (obviously if this is a homepage, path is empty).
Can someone help me understand if we can manage something good and what ?
Thanks
Another problem is that 301 redirection rule will only be checked only if the page at this address can not be rendered (does not exist), which is not the case for homepage.
So, yes, only customer-side redirects. Not ideal, but would not be a significant slow-down (from the human visitor perspective, at least).
But what prevents you from rendering same content on the homepage? And if you need the url updated, can add some JS code to history.pushState() (or replaceState) to update it, similar to what happens when you select new variant on product page.
The year-end shopping spree is around the corner! Is your online store ready for the ...
By JasonH Nov 10, 2024We recently spoke with Zopi developers @Zopi about how dropshipping businesses can enha...
By JasonH Oct 23, 2024A big shout out to all of the merchants who participated in our AMA with 2H Media: Holi...
By Jacqui Oct 21, 2024