Mercuryweb adlı üyeden alıntı: mesajı görüntüle
C:/xampp/apache/conf/extra/httpd-vhosts.conf dosyasının en altına

<VirtualHost *:80>
ServerName site.local
DocumentRoot "C:/xampp/htdocs/site"
<Directory "C:/xampp/htdocs/site">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
# Redirect all HTTP requests to HTTPS
Redirect permanent / https://site.local/
</VirtualHost>

<VirtualHost *:443>
ServerName site.local
DocumentRoot "C:/xampp/htdocs/site"
SSLEngine on
SSLCertificateFile "C:/xampp/apache/conf/ssl.crt/server.crt"
SSLCertificateKeyFile "C:/xampp/apache/conf/ssl.key/server.key"
<Directory "C:/xampp/htdocs/site">
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
bu kodları

C:/windows/System32/Drivers/Etc/hosts dosyasına
127.0.0.1 site.local
bu kodu eklemeniz durumunda istediğinize ulaşabilirsiniz
Çok teşekkürler bunu denicem