Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

By raffanello
I have phpmyadmin installed on my droplet and it was working fine until I added Rewrite Directives for my /var/www/ directory.
When I first added the directives navigating to the phpmyadmin login url (domain.com/phpmyadmin) caused an internal server error.
So I added the following Rewrite Rule:
RewriteRule ^(phpmyadmin)($|/) - [L]
and that allowed me to access the phpmyadmin log in page… But now when I try to use my phpmyadmin password it keeps giving me the “#1045 Cannot log in to the MySQL server” Even though I’m positive I’m using the correct password.
My question is whether the rewrite directives are preventing me from logging in in some way?
The directives are inside /etc/apache2/sites-available/default
<Directory /var/www/>
RewriteEngine on
RewriteCond %{request_filename} -f
RewriteRule ^(phpmyadmin)($|/) - [L]
RewriteRule ^(.*) $1 [L]
RewriteRule ^(([^/]*)+)(/([^/]{0.32})(/.+)?)?$ index.php?a=$1&q=$3 [L]
</Directory>