I want to set my server so it redirects http
to https
for phpmyadmin
but only for phpmyadmin
.
Basically what I want is when I type localhost
in address bar to be http://localhost/
but when I type localhost/pma
(which is my phpmyadmin folder) it goes to https://localhost/pma/
I am using Apache server on Windows 10 with self signed certificate just for learning and testing stuff out.
So is it possible to do redirect with VirtualHost
or will I have to use mod_rewrite
to achieve this?
Thanks