sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf-available/phpmyadmin.conf sudo a2enconf phpmyadmin sudo service apache2 reload sudo apt update sudo apt install phpmyadmin php-mbstring php-gettext sudo phpenmod mbstring sudo systemctl restart apache2 sudo mysql -u root -p; CREATE USER ‘siddharth’@’localhost’ IDENTIFIED BY ‘admin1818’; GRANT ALL PRIVILEGES ON *.* TO ‘siddharth’@’localhost’ WITH GRANT OPTION; exit
Just put in the .htaccess file RewriteEngine on RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]