.htaccess 重写';http';进入';https';在url中

.htaccess 重写';http';进入';https';在url中,.htaccess,mod-rewrite,url-rewriting,drupal-7,wampserver,.htaccess,Mod Rewrite,Url Rewriting,Drupal 7,Wampserver,如何使用https://localhost/而不是http://localhost/ 我正在使用WAMPServer2 有没有办法将http改写成https…?有办法。将此规则放在根目录中。htaccess: RewriteEngine On RewriteBase / RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L] thnk u。你知道关于在WinXP中的apach

如何使用
https://localhost/
而不是
http://localhost/

我正在使用WAMPServer2


有没有办法将http改写成https…?

有办法。将此规则放在根目录中。htaccess:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [NE,R=301,L]

thnk u。你知道关于在WinXP中的apache(WAMP)中安装ssl的文章吗@我不知道,但我相信你可以在谷歌搜索上找到一些东西。