Auto Convert a Relative URL to an Absolute URL

2 0 0

Dear Shopify Tech team, our team have identified some relative links on our website. Could you give us a guide to automate identification and automate the conversion to replace relative link to absolute link?


So that, we can avoid any duplicate content, prevent problems with RSS feeds, reduce the likelihood of theft of links to zero

Replies 2 (2)

497 67 75

Hi @HelloOfficial ,
This is Theodore from PageFly - Shopify Page Builder App.

To automate finding and converting relative links to absolute links on Shopify, you can use either Shopify apps like Link Doctor or a custom script. The chosen method will identify relative links (paths without http/https) in your website's code and then prepend your store's full URL to create absolute links. Remember to thoroughly test and backup your site before making changes. This automation can improve SEO, page loading, and avoid issues with content, feeds, and link theft.

Best regards,
Theodore | PageFly

Please let me know if it works by giving it a Like or marking it as a solution!

PageFly - #1 Page Builder for Shopify merchants.

All features are available from Free plan. Live Chat Support is available 24/7.

2 0 0

Hi! thanks for the inputs Theodore. I'm interested to know more about the custom script approach. Would you mind share any links for the guide?