Type in terminal:
cd C:\xampp\apache
makecert
Type in httpd-xampp.conf:
IfModule mod_rewrite.c
RewriteEngine On
Redirect -xampp folder to https
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} xampp
RewriteRule ^(.*) https:--%{SERVER_NAME}$1 [R,L]
Redirect -phpMyAdmin folder to https
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} phpmyadmin
RewriteRule ^(.*) https:--%{SERVER_NAME}$1 [R,L]
Redirect -security folder to https
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} security
RewriteRule ^(.*) https:--%{SERVER_NAME}$1 [R,L]
Redirect -webalizer folder to https
RewriteCond %{HTTPS} !=on
RewriteCond %{REQUEST_URI} webalizer
RewriteRule ^(.*) https:--%{SERVER_NAME}$1 [R,L]
-IfModule
12 сен 2024