Why do you have a link if there is no page attached to it.
Can you share your store url please
Why do you have a link if there is no page attached to it.
Can you share your store url please
Shopify had policy pages there by default, whether there was any content in them or not. There was no option for me to remove the pages/URL/link to the pages so for example if someone typed https://akcapparel.com/policies/refund-policy - it would still take them to that page.
The other user basically added code where any url that has the “policies” part in it, will just lead to page not found, just like it would with any other invalid URL. I don’t see the issue? This should be the code -
thank you, working
Not the best solution, as it visually displays a 404 error, but it’s just an image. The page continues to be indexed and negatively affects your site’s search results. I’m not sure how to solve this issue yet, but I know it’s possible because there are shops that display the correct error on URLs where a policy page should be.
Hey folks! I just wanted to share that you can setup a URL redirect for any page that results in a 404 on your store. This can be done from within your store admin under Online Store > Navigation. There will be a button in the upper right that says “View URL Redirects”, which is where you can go to view or create new URL directs for your store. You can learn more about this here: Shopify - URL Redirects.
How would you do it from the code if you are not able to edit the default policies pages/routes from the code?