I have a DigitalOcean server with Apache2 installed, which runs virtual hosts.
I have set up the site in a sub-folder
var/www/html/[site-name]. The URL being something like
All was working well until I created a virtual hosts
.conf file and pointed a domain to the server.
The home page loads, but non of the subpages. If reset the permalinks to default, they load fine like
Normally the problem would either be
AllowOverride All not set,
a2enmod rewrite not on, or the
.htaccess file is not there or doesn't have the correct permissions.
I've never seen this problem before! Do you know what may be up?