I have 2 sites running on nginx (php wordpress).
For some reason redirects are working differently, although they both have the same vhost setup.
domain1.com redirects to www.domain1.com www.domain1.com stays at www.domain1.com
domain2 seems to be acting strainge:
domain2.com stays at domain2.com www.domain2.com redirects to domain2.com
What could be the issue?
both vhosts have this:
server_name domain1.com www.domain1.com server_name domain2.com www.domain2.com
What I want is for both domains to redirect from domain.com to www.domain.com