Ich versuche, HTTP mit Xampp zu HTTPS umzuleiten.Umleiten von HTTP zu HTTPS mit XAMPP
ich die Linie unkommentiert
LoadModule- rewrite_module modules/mod_rewrite: http://robsnotebook.com/xampp-ssl-encrypt-passwords
Ich habe Dies ist, was:
Ich habe schon alle Fragen und mehrere Antworten auf mehreren Websites zu empfehlen diese Seite gesehen. so
in c: /xampp/apache/config/httpd.conf durch das Entfernen von # vor.
Dann tippte ich diese innerhalb von c: /xampp/apache/config/extra/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>
I Triple-vergewissert, dass ich habe alles richtig, ich habe alles gespeichert, und ich habe XAMPP neu gestartet, aber ich werde nicht zu HTTPS weitergeleitet. Bitte Hilfe!
'if (! Isset ($ _SERVER ['HTTPS']))' dann können Sie einfach Ihre 'header ('Ort: https: // ...'); exit(); ' – KDOT
http://stackoverflow.com/questions/20730778/how-to-enable-ssl-only-on-specified-xampp-directories –
user2078421 Das ist genau das, was ich ausprobiert habe, aber es hat nicht funktioniert mich. –