301 redirect of CMS collection leads to 404 error

Hi, so we’re building an existing website to webflow from wordpress.
But we want to maintain the URLs for SEO purposes.

This is the original link for the blog posts:
domain.com**/BLOG-POST-TITLE**

When building it on Webflow, we get this slug:
domain.com**/blogs/BLOG-POST-TITLE**

We want to change the slug provided by webflow to the original one.

Tried these already:

  • Setup the 301 redirects already: Old → /blogs/(.*) to New → /%1
  • Set to draft the blog posts and putting them to Staging Publish and Publishing them to no avail.
  • Tried turning on and off the “Permanently redirect the old URL to this new one” and saving it but it just turns on automatically for some reason.

Any solutions to fix the 404 error?


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

Hi Vlad,

Webflow’s CMS structure requires the CMS slug, so there’s no native way to remove the /blogs/ portion, though you can rename it by changing the collection slug.

301 Redirects reroute a web browser request to the destination URL- meaning that you must have a meaningful page at that destination URL. I think you’re trying to “change” the URL of the page using redirects, but they don’t work that way.

In short there’s no native way to mimic those WP paths.

Standard practices for SEO is to redirect them to your new Webflow paths, e.g. /some-article/blogs/some-article

If you really want to maintain those paths, it’s possible with a reverse proxy.

Maybe not the solution you had in mind, and maybe I’m saying the same as memetican in other words, but isn’t it more clear to set a redirect on your old blog posts, thus adapting the new subdirectory of /blog/.

This you can do by one redirect line, the other way around as the line you’ve written:
/(.*) → /blog/%1

If I’m correct this way you won’t get penalized by search engines and keep your ranking (but I’m by no means an expert), and your visitors won’t notice.

@Tookster the challenge is that a wildcard would also pick up all of the static pages like /about, /contact, /privacy-policy

However with the new 301 import, I have wondered if the ordering of the redirect rules could be used to control that, i.e. make the wildcard match last.