I'm trying to redirect phpmyadmin to SSL on the default installation of an Ubuntu 12.04. I enabled mod_rewrite
and I turned the engine on with:
RewriteEngine On
then, in /etc/phpmyadmin/apache.conf
, I added the two lines to redirect, so it looks like this:
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
RewriteCond %{HTTPS} off
RewriteRule ^/phpmyadmin https://%{HTTP_HOST}%{REQUEST_URI}
<IfModule mod_php5.c>
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/phpmyadmin/tmp
php_admin_value open_basedir /usr/share/phpmyadmin/:/etc/phpmyadmin/:/var/lib/phpmyadmin/
</IfModule>
</Directory>
It is not redirecting. Any ideas what's going on?