I’ve noticed that Webflow creates 302 redirects for different locales. I’d like to change a specific one to a 301 redirect.
Specifically, the URL www. sitename .com currently redirects (302) to www. sitename .com/en. I want this to be a 301 redirect instead. How can I make this change? Will Webflow automatically remove their default 302 redirect once I set up a 301 redirect?
I’m guessing you might be talking about localization auto-routing? If you have /en setup as the path for English, it will try to route you there when you request the homepage. These need to be 302’s because they’re language-specific page variants.
You could add a 301 site redirect from /en to / under site settings however in this circumstance I wouldn’t advise it, you’ll likely get an infinite redirect loop.
Thank you for your response. Can you also tell me what happens to the 302 if I want to do it the other way around, so a 301 redirect for / to /en? Does the 302 from the localization auto-routing still exist afterwards? I’m afraid that this could be the case and that there could be conflicts. As far as I know it is not possible to remove this single 302, right?
Probably not, but you’d have to try it.
My guess is the 301 would take precedence, and then you’d be on whatever locale page you forced the user to.
The problem you’re missing is that if you did that, you’d entirely break your SEO, because you’re giving Google very bad information, telling it that every local version of the page is the same page. They’re not. It would be an indexing war on your site as Google tries to sort out the illogical things you’re asking it to do.
Likely it would just abandon and de-index your site completely