Streaming live at 10am (PST)

My 301 redirects wildcards don't match everything + only work on one domain

Hey folks,

Context
I’m moving my website to Webflow, and as we’re totally changing the content of our blog, we’ve decided to move all our old articles to Medium. As Medium URL are a bit random, I’m manually entering every redirect.

Old website currently on https://ignition-program.com
My new website is currently https://ignition-program.webflow.io AND site.ignition-program.com for testing purpose (soon, it will replace my old website on https://ignition-program.com)
Old article : https://ignition-program.com/blog/conseils-trouver-job-reves-startup/
New article : https://medium.com/@ignitionprogram/trois-questions-à-se-poser-pour-définir-le-job-de-ses-rêves-15c39fa2713

As people could arrive on /blog/conseils-trouver-job-reves-startup?utm_source=blabla, /blog/conseils-trouver-job-reves-startup/?referrer=blabla or anything, I want to set up a 301 redirect that matches /blog/conseils-trouver-job-reves-startup[ANYTHING]

So I created this 301 redirect on my dashboard :
/blog/conseils-trouver-job-reves-startup(.*) -> new article link

Problems
1/ It only works on webflow domain
https://ignition-program.webflow.io/blog/conseils-trouver-job-reves-startup WORKS and redirects to the Medium
https://site.ignition-program.com/blog/conseils-trouver-job-reves-startup DOESN’T WORK and returns a 404.
… which worries me a bit because eventually, I’m only interested in redirects from ignition-program.com/[path].
Is is about making ignition-program.com my default domain or is the problem heavier?

2/ The wildcard is not very wild
Except made for /blog/conseils-trouver-job-reves-startup and /blog/conseils-trouver-job-reves-startup/, nothing redirects me to Medium. How to “enlarge” the pattern to match all URL starting with /blog/conseils-trouver-job-reves-startup ?

Any ideas? We’re moving the website on Thursday morning, so I’m very open to testing things.

Thanks!
Max

Hi @dadmax,

Congrats on building out your first Webflow site. What I can gather from your information is that you are moving your current site to webflow, but using Medium as the place to host your blog articles?

Is there a particular reason why for this? The CMS functionality within Webflow is specifically designed for this such action?

Ok, moving on, The 301 redirections will only work on a LIVE site. Also, if you are changing the domain naming structure at all you would do your 301 redirects within your Domain Name service provider, like GoDaddy, HostGator, etc., not within Webflow. Webflow ONLY allows 301 redirects of the hierarchy structure of the same domain name.

Hope that helps and lmk if you need anything else?
Brandon

Hi Brandon, and thanks for this reply.

Is there a particular reason why for this? -> We won’t rely on our old blog content, as we want to create a new one, with a totally different content. But we’d like to keep those articles on another platform to avoid bad visitor experience and a part of the presence we had built on them.

The 301 redirections will only work on a LIVE site -> What do you mean by “a live site” ? Is it making ignition-program.com my default address? Then my 301 should work?

you would do your 301 redirects within your Domain Name service provider, like GoDaddy, HostGator, etc., not within Webflow -> We are using GoDaddy (only for the domain name) + Cloudflare. I see no possibility in the first one to configure 301 redirects, and for the second it will cost us one page rule / article => ~ 100$/mo… way too much :grin: Do you have any idea of a cheaper solution?

Webflow ONLY allows 301 redirects of the hierarchy structure of the same domain name. -> But Webflow lets me configure redirects from /blablabla to absolute (https://bliblibli) urls! I don’t see why it can’t work if I manually configure a 301 for each article. :confused:

Thanks for your help!

Hi @dadmax,

Lets try to clarify each of these sections.

Sounds good on the first one and I get what you mean about a bad visitor experience.

As for the LIVE site, yes 301s will ONLY work with a live domain hosted site. Meaning that you would have to have started paying for hosting with Webflow for the 301 redirects to work.

As for the GoDaddy 301 redirects, YES you can setup redirects of any kind within the DNS manager of the GoDaddy system, it is free and doesnt cost you anything, since you have your domain name through them.

As for the last one, if you do setup your 301 redirects on Webflow you would do so Manually or by way of the Wildcard feature.

@WebDev_Brandon
As for the GoDaddy 301 redirects, YES you can setup redirects of any kind within the DNS manager of the GoDaddy system, it is free and doesnt cost you anything, since you have your domain name through them. I just bought my Domain Name at them but I am using Cloudflare for the rest, which only leaves me Cloudflare as a very expensive solution to configure the 301.

But I eventually got it, it was just a problem of unescaped “-” in the old path, but the redirection was still working on .webflow.io in editor mode, which led me to a confusion.

Thanks for your help, though. :slight_smile:

1 Like

Congrats on finding the issue @dadmax, sometimes just talking it out can be helpful too. Makes us look deeper.

Let us know if you need anything else.