phpmyadmin log-in not logging in after setting Rewrite Directives.

February 26, 2014 1.7k views
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 ( 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 RewriteEngine on RewriteCond %{request_filename} -f RewriteRule ^(phpmyadmin)($|/) - [L] RewriteRule ^(.*) $1 [L] RewriteRule ^(([^/]*)+)(/([^/]{0.32})(/.+)?)?$ index.php?a=$1&q=$3 [L]
1 comment
1 Answer
Problem solved,
It was an incredibly stupid oversight.
You can forget this question
Have another answer? Share your knowledge.