Sorry, we don't support your browser.  Install a modern browser

Use Webflow's 301 redirects and Weglot's subdirectories#164

?

With Weglot subdirectories on Webflow, it is not possible to use Webflow 301 redirects.

Example : I have an english website (example.com) that I built on Webflow. I traduce it with Weglot and setup a subdirectories integration.

If you want to create a 301 from example.com/fr/my-old-page through example.com/fr/my-new-page it will be not working.

Indeed, there is a conflict with Webflow’s internal 301 redirects where Weglot’s redirection takes preference since it is loaded last in the site’s custom code settings.

a year ago

Hi, thanks for the feedback. This should already be possible for you to implement on your site.

The issue is that the Webflow redirect is not aware of the existence of paths that include Weglot subdirectories. So, in your example, if “fr” is the Weglot language, you can’t redirect “/fr/my-old-page.html” to “/fr/my-new-page.html”, because Webflow does not know that the “/fr/…” pages exist. They are added on top by the Weglot proxy.

However, you should be able to use the original-language path to do the redirect in Webflow. For example, if you simply redirect from “/my-old-page.html” (without the /fr/) to “/my-new-page.html”, the redirect should work, and Webflow will transmit this to Weglot so that it holds also also across the /fr/ language.

Please let us know if this is working, and if not, please don’t hesitate to also contact the Weglot support channel directly so that we can look at your use case more concretely.

a year ago