Redirect / Rewrite URL

Hello,

I was looking to redirect a URL but its a bit dynamic.

So I was looking to take a URL like this one: **https://www.testsite.com/imt_team/**john_doe

And replace it with something like this: **https://www.testsite.com/members/**john_doe

“john_doe” is a dynamic parameter, the next URL can contain “jane_doe” and so forth. I am only looking to replace “im_team” with “members” but also recognize the URL may contain at the end dynamic values.

Hope someone can help. :slight_smile:

Thanks,
Stefan

This is what I’ve tried over the rules. But I am not reaching the desired effect.

Stefan

Greetings,

Thank you for asking.

May I ask if you are trying to access with or without www when you test this?

Is A www existing and proxied and :orange: at the DNS tab of Cloudflare dashboard for your domain name?

If you are trying to follow the path from /imt_team/some-user/ to be /members/some-user/, use $1 instead of wildcard * (apex) at the end of the https://www.testsite.com/members/*, so would be https://www.testsite.com/members/$1.

1 Like

Thank you so much! It worked!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.