Is there a way to redirect .atom pages?

aaronsander
Visitor
1 0 0

I'm looking to redirect an atom feed created from the blog page, this is the slug: /fr/blogs/news.atom/. I tried through the redirects inside of Shopify but it doesn't work and I tried adding the following code but it didn't work either.

{% if page.url == '/fr/blogs/news.atom/' %}
<!-- Redirect for FR blog -->
<meta http-equiv="refresh" content="1; URL=https://examplesite.com/fr/blog/" />
<script type="text/javascript">
window.location.href = "https://examplesite.com/fr/blog/"
</script>
{% endif %}

 

Is there a way to redirect Atom pages?

Replies 0 (0)