@adelia
To redirect HTTP to HTTPS using XAMPP, you can follow these steps:
- Open the Apache configuration file. You can find it in the "conf" folder inside the XAMPP installation directory. The file is typically named "httpd.conf".
- Look for the line that starts with "Listen 80" and change it to "Listen 443".
- Look for the line that starts with "" and add the following lines inside it:
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
- Save the changes to the configuration file and restart the Apache server.
- Now, when you access your website using HTTP, it should automatically redirect to the HTTPS version.
Please note that this method may vary depending on your specific configuration and setup. It's always a good idea to backup your files before making any changes to the configuration.