Non-www shows empty directory listing. www. works fine.
I’m running Wordpress 5.4 on Ubuntu 18.04.1 and Apache/2.4.29.
When I go to example.com I see this empty directory listing.
But www.example.com works fine.
Also working fine is a 301 redirect I have in htaccess. As well as any redirect from example.com/page to www.example.com/page and HTTPS.
It’s only the root non-www. that does this.
Here is my htaccess but maybe this is something to do with a DNS record or even virtual hosts?
I’m not sure where to look next any help would be really appreciated.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×