Does EE include a default 301 redirect? Infinite loop problem


Running EE (3.4.1) WP --pagespeed install

When I perform curl -I I get a 301 redirect to the non-www version of

Yet, nowhere in my nginx server block do I have a 301 redirect specified for non-www. (Editing using command sudo ee site edit

I’ve discovered this error because I wanted to add www to the domain, but when I added the redirect below, it obviously resulted in an infinite redirect loop.

server { listen 80; server_name; return 301 $scheme://$request_uri; }

Does EE have a default redirect baked in? How do I get rid of it? I’m looking at the shared configurations and can’t find any redirect. Where is this non-www 301 I can’t find?

Thanks in advance!


Try this:

Wordpress Admin > Settings > General > add www for WordPress Address (URL) and Site Address (URL)