Was this article helpful?
Thanks for your feedback
If you happen to change the URL of any already-published entry, it is recommended that you redirect the previous URL to the newer one. This is considered as an appropriate SEO best practice as users trying to visit the older link to the website will be automatically taken to the newer link, instead of seeing a “Page not found” error.
Additional Resource: If you're interested in knowing what are the best practices when it comes to managing SEO for your content, here's our SEO Best Practices for Contentstack-powered Websites guide that you can refer to.
Let’s learn how to manage URL redirects using your Contentstack-powered websites.
You need to create a separate content type to manage the redirection of the changed URLs.
This creates your Redirect content type. You can now add your redirect links as entries.
If you change the URL of any published entry, perform the following steps to manage URL redirects:
Finally, the main and irreplaceable task is to write the script that will manage your Redirects. It should check the URL in the “From” field and get redirected to the URL in the “To” field.
Now, if any user visits the old URL, he/she will be redirected to the new URL automatically.
Was this article helpful?
Thanks for your feedback