How to set a dynamic transform rule?

Hello everyone,
I would like to add a transform rule for my website to remove the www part from the url

www.mywebsite.com/auth/login and https://www.mywebsite.com/auth/login
to
https://mywebsite.com/auth/login

Under the rewrite section I understand that I need to chose the dynamic option.

How do I preserve the auth/login part or any other part that comes after mywebsite.com , what is the pattern I need to write there?

Thank you

Just to remove www? Why not a redirect with a Page Rule?

2 Likes

Transform Rules can only be used to modify the URI Path and/or URI Query. Not the host portion. A redirect is your best option here (as above).

3 Likes

I thought about removing the www part, but I can also redirect them if it’s better.

So when a user goes to https://www.example.com/auth/login I would like to redirect him to https://example.com/auth/login

I think this will do the trick:

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