I’m trying to optimise the SEO for my Shopify store and I’m just trying to figure out the best way to deal with internal links and canonical url’s.
From what I can tell, I need some form of internal navigation so the customer always gets back to the canonical url and the simplest way I can think of is redirecting all non-canonical url’s to the canonical url.
I can either do this manually by importing a csv to redirect them all, however, I was hoping there would be a simpler method to do it via liquid or something in the theme files to automate the process for now and the future.
For example, you’d be able to check the template for the canonical link, if it doesn’t match the current URL you are on, redirect to the canonical link.
Just a random thought I had and couldn’t seem to find much about it when searching.
Thanks in advance ![]()