I followed this tutorial to install mautic on my Digital Ocean droplet.
When i access the domain with www, eg: www.loudmonitor.ga the mautic opens. but when i access loudmonitor.ga, the apache page opens.
What i made wrong and how can i fix this?
PS: I used 'lets encrypt' to configure SSL on www.loudmonitor.ga
sudo nano /etc/apache2/sites-available/mautic.conf
<VirtualHost *:80>
ServerAdmin eduardofreitas@agencialoud.com
ServerName loudmonitor.ga
ServerAlias www.loudmonitor.ga
DocumentRoot /var/www/html/mautic
<Directory /var/www/html/mautic/>
Options +FollowSymlinks
AllowOverride All
Require all granted
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =www.loudmonitor.ga [OR]
RewriteCond %{SERVER_NAME} =loudmonitor.ga
RewriteRule ^ https://www.loudmonitor.ga [END,NE,R=permanent]
</VirtualHost>