#####環境
・Apache
・Mac OS Sierra
・PHP Version 7.0.14
・mysqlnd 5.0.12
・CakePHP3
#####元の.htaccess
# Uncomment the following to prevent the httpoxy vulnerability # See: https://httpoxy.org/ #<IfModule mod_headers.c> # RequestHeader unset Proxy #</IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>
#####追記した.htaccess
# Uncomment the following to prevent the httpoxy vulnerability # See: https://httpoxy.org/ #<IfModule mod_headers.c> # RequestHeader unset Proxy #</IfModule> <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L] RewriteRule ^$ webroot/ [L] RewriteRule (.*) webroot/$1 [L] </IfModule>
サイトが見れなくなってしまったので
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
を消して元に戻したのですが、常に
https:になってしまいます。
元に戻したいのですが、どうしたらいいでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。