Remove /Pages from URL my store

grayer
Visitor
1 0 5

Hi, 

Is there any way to remove /Pages from URL.Currently, my page URL is ".com/pages/about-us" i want to change to ".com/about-us".I tried URL redirect method Navigation settings and edit the code from theme.liquid to like this,

{% if template contains 'collection' and current_tags %}
<meta name="robots" content="noindex" />
<link rel="canonical" href="{{ shop.url }}{{ collection.url }}" />
{% else %}
<link rel="canonical" href="{{ canonical_url }}" />
{% endif %}

Still it did not work. Please help me.Thank you.

Replies 169 (169)