I have a freshly built site on Wordpress, everything was fine until I decided to add WWW before the site name. I did it in WP and it worked, but GTmetrix measured some loading delays due WP redirects. So I decided to get rid of the WP redirects and change DNS records to make WWW by default so WP doesn't have to redirect anything. And yes, it worked! GTmetrix is happy, I was too but just for a couple of hours, because later that day I found that site doesn't load without WWW prefix. It works in Firefox (I guess FF adds www to anything in address bar), but not in Opera for example and also GTmetrix couldn't find it later.
What I did in DNS settings.
Before it was like this:
Type | Name | Data | ----------------------------- A | @ | ipv4 address | CNAME | * | example.com. |
One thing I changed is replacing @ with www
Type | Name | Data | ----------------------------- A | wwww | ipv4 address | CNAME | * | example.com. |
How to make it work with and without WWW? Add another record? Thank you!