apache2 - how to exclude alias from rewrite rules?

Solution 1:

Exclude the URIs containing "/phpmyadmin/" if you don't want them redirected:

RewriteCond   %{REQUEST_URI}  !/phpmyadmin/.*

Solution 2:

Or just move the declaration of your Alias before Directory or Location

Alias /phpMyAdmin /var/(...)

<Location />
    RewriteEngine on
    # (...)
</Location>

By the wa: use Location with url ('/'), not 'Directory'.