Redirect to www


#1

Hi Everyone
Need some help with redirects.
I want to redirect: https://mysite.com to https://www.mysite.com.

Although all other traffic like /api & /admin should not redirect to www site.

We have our sites on two different servers, hence the problem

Thanks for you help in advance.


#2

http-request redirect prefix “//www.mysite.com” code 301 if { hdr_dom(host) -i mysite.com }