質問するログイン新規登録

質問編集履歴

3

chromeのデベロッパーツールのSecurityタブのキャプチャを追加しました

2020/03/05 00:33

投稿

momoyuri
momoyuri

スコア35

title CHANGED
File without changes
body CHANGED
@@ -83,4 +83,10 @@
83
83
  RewriteCond %{ENV:HTTPS} !on
84
84
  RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
85
85
  </IfModule>
86
- ```
86
+ ```
87
+
88
+ 正常時のchromeのデベロッパーツールのSecurityタブのキャプチャ
89
+ ![正常時のキャプチャ](4200322b66194bf87d4a950ac07640f6.png)
90
+
91
+ NG時のchromeのデベロッパーツールのSecurityタブのキャプチャ
92
+ ![NG時のキャプチャ](45f7b095d80d67840723374778586c53.png)

2

うまくコードブロックに変換されていなかったので.htaccessの記載を修正いたしました。

2020/03/05 00:33

投稿

momoyuri
momoyuri

スコア35

title CHANGED
File without changes
body CHANGED
@@ -45,6 +45,7 @@
45
45
  何卒、よろしくお願いいたします。
46
46
 
47
47
  .htaccess
48
+
48
49
  ```
49
50
  Action myphp-script /php.cgi
50
51
  AddHandler myphp-script .php .html
@@ -82,4 +83,4 @@
82
83
  RewriteCond %{ENV:HTTPS} !on
83
84
  RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
84
85
  </IfModule>
85
- ```
86
+ ```

1

.htaccessの記載内容を追加いたしました。

2020/03/04 14:47

投稿

momoyuri
momoyuri

スコア35

title CHANGED
File without changes
body CHANGED
@@ -42,4 +42,44 @@
42
42
 
43
43
  設置しているサーバーは「さくらインターネット」の共有のレンタルサーバーを使用しています。
44
44
 
45
- 何卒、よろしくお願いいたします。
45
+ 何卒、よろしくお願いいたします。
46
+
47
+ .htaccess
48
+ ```
49
+ Action myphp-script /php.cgi
50
+ AddHandler myphp-script .php .html
51
+
52
+ RewriteEngine on
53
+ RewriteCond %{HTTP_HOST} ^example.jp$
54
+ RewriteRule ^(.*) http://www.example.jp/$1 [R=301,L]
55
+
56
+ Redirect permanent /guide.html https://www.example.jp/guide/index.html
57
+ Redirect permanent /attention/index.html https://www.example.jp/guide/attention.html
58
+ Redirect permanent /shop.html https://www.example.jp/shop/index.html
59
+ Redirect permanent /access.html https://www.example.jp/shop/access.html
60
+ Redirect permanent /faq.html https://www.example.jp/faq/index.html
61
+ Redirect permanent /reserve.html https://www.example.jp/reserve/index.html
62
+ Redirect permanent /contact.php https://www.example.jp/contact/index.html
63
+ Redirect permanent /sitemap.html https://www.example.jp/sitemap/index.html
64
+ Redirect permanent /privacy.html https://www.example.jp/privacy/index.html
65
+
66
+ AddDefaultCharset utf-8
67
+ AddType "text/html; charset=utf-8" html php
68
+
69
+ <IfModule mod_php5.c>
70
+ php_value mbstring.internal_encoding utf-8
71
+ php_value default_charset utf-8
72
+ php_value mbstring.http_output utf-8
73
+ php_value mbstring.language utf-8
74
+ php_value mbstring.http_input auto
75
+ php_flag mbstring.encoding_translation On
76
+ php_value output_handler mb_output_handler
77
+ </IfModule>
78
+
79
+ #SetEnvIf REDIRECT_HTTPS (.*) HTTPS=$1
80
+ <IfModule mod_rewrite.c>
81
+ RewriteEngine on
82
+ RewriteCond %{ENV:HTTPS} !on
83
+ RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
84
+ </IfModule>
85
+ ```