Setting to force www

What is the best setting to force www and not affecting other sub-domains?

https://domain.com >>> https://www.domain.com
https://domain.com/about >>> https://www.domain.com/about

Thanks.

https://community.cloudflare.com/t/redirect-example-com-to-www-example-com/78348

Hi, thanks.

So I have to put the url with /$1 in the destination field?
What does $1 stands for?

The tutorial, respectively the documentation, has all the details on that.

Oh, thanks! See it.

Should I use 302 or 301 for this? Which is better?

There’s no better

https://www.google.com/search?client=firefox-b-d&q=redirect+301+vs+302

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