301 Redirect with " : " caracter

Hi Everyone,

I published my website and created 301 redirect for older URL from the previous website.

Unfortunately some old URL contain the character " : " which is not allowed.
Based on information, I tested everything the %: ; the (.*) ; the %3A ; the space; the delete nothing seems to work.

Here is the previous url :
medecine-esthetique/le-prf-:-le-plasma-riche-en-fibrine/63e22afe062263ef95618aca

And here is the new one :
/actes/le-prf-le-plasma-riche-en-fibrine

I’m trying to find a solution to replace : from the older url in order to have the redirect
Can someone help me ?

Thx !

Hello @eaqbe, in Webflow you can substitute an invalid character with a dot and a * inside parenthesis . In your case the old url should look like this:
medecine-esthetique/le-prf-(.*)-le-plasma-riche-en-fibrine/63e22afe062263ef95618aca
I hope this helps!

Jeremie if you’ve already tried Pablo’s solution and it’s not working for you, the only other option I can think of here is to bring your redirects external, to a platform that can handle them.

I occasionally do this with Cloudflare redirects, but it requires a cloudflare DNS and a proxied DNS configuration. Your DNS provider may offer something similar.

@Pablo_Cortes
@memetican

Thank you very much for you help and the rapidity of your answers.

Unfortunetaly the (.*) doesn’t work BUT !!! I had a better look to Set 301 redirects to maintain SEO ranking - Webflow University Documentation

Something is not very clear… and i found the solution : (.*) as to be completed with % for specifics other carachters

For the path : medecine-esthetique/le-prf-:-le-plasma-riche-en-fibrine/63e22afe062263ef95618aca

I have to rewrite it like this :
/medecine%-esthetique/le%-prf%-(.*)%-le%-plasma%-riche%-en%-fibrine/63e22afe062263ef95618aca

= SOLUTION :partying_face:

apparently when you substitue a carachter by (.*) , for all other carachters of the following list :

  • -
  • &
  • *
  • (
  • )
  • =
  • _
  • +
  • ?

You have to place % before each of them
And it works.

2 Likes

Yes, you have to escape special chars when you use wildcard matching.
Excellent, I’m glad you were able to get your wildcard match working.

1 Like