質問編集履歴

3

タイトルを具体的に

2017/12/08 05:44

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- 【laravel】htaccessでhttpsに向け変えたところ、リダイレクトされ。【AWS】
1
+ 【laravel】htaccessでhttpsに向け変えたところ、リダイレクトされ、ページが表示されない。【AWS】
test CHANGED
File without changes

2

追記②

2017/12/08 05:44

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -190,6 +190,12 @@
190
190
 
191
191
 
192
192
 
193
+ ##追記②
194
+
195
+ 関係があるのかわかりませんがAWSのSSL証明書の設定は、「*.example.co.jp」と「example.co.jp」の両方の登録を行いました。
196
+
197
+
198
+
193
199
 
194
200
 
195
201
  何卒よろしくお願いいたします。

1

追記①

2017/12/08 05:38

投稿

退会済みユーザー
test CHANGED
@@ -1 +1 @@
1
- htaccessでhttpsに向け変えたところ、リダイレクトされる。【AWS】
1
+ 【laravel】htaccessでhttpsに向け変えたところ、リダイレクトされる。【AWS】
test CHANGED
@@ -52,6 +52,144 @@
52
52
 
53
53
 
54
54
 
55
+ ###追記①
56
+
57
+ htaccessにはほかにも以下を加えています。
58
+
59
+ ```
60
+
61
+ RewriteEngine On
62
+
63
+ RewriteCond %{HTTPS} off
64
+
65
+ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
66
+
67
+ <IfModule mod_rewrite.c>
68
+
69
+ <IfModule mod_negotiation.c>
70
+
71
+ Options -MultiViews
72
+
73
+ </IfModule>
74
+
75
+ php_value default_charset "UTF-8"
76
+
77
+ php_flag mbstring.encoding_translation off
78
+
79
+ RewriteEngine On
80
+
81
+
82
+
83
+ # Redirect Trailing Slashes If Not A Folder...
84
+
85
+ RewriteCond %{REQUEST_FILENAME} !-d
86
+
87
+ RewriteRule ^(.*)/$ /$1 [L,R=301]
88
+
89
+
90
+
91
+ # Handle Front Controller...
92
+
93
+ RewriteCond %{REQUEST_FILENAME} !-d
94
+
95
+ RewriteCond %{REQUEST_FILENAME} !-f
96
+
97
+ RewriteRule ^ index.php [L]
98
+
99
+ </IfModule>
100
+
101
+
102
+
103
+ #���k���L���ɂ���
104
+
105
+ <IfModule mod_deflate.c>
106
+
107
+ #�t�H���g��content-type�̒lj�
108
+
109
+ AddType application/vnd.ms-fontobject .eot
110
+
111
+ AddType application/x-font-ttf .ttf
112
+
113
+ AddType application/x-font-opentype .otf
114
+
115
+ AddType application/x-font-woff .woff
116
+
117
+ AddType image/svg+xml .svg
118
+
119
+ SetOutputFilter DEFLATE
120
+
121
+ BrowserMatch ^Mozilla/4 gzip-only-text/html
122
+
123
+ BrowserMatch ^Mozilla/4.0[678] no-gzip
124
+
125
+ BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
126
+
127
+ SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico)$ no-gzip dont-vary
128
+
129
+ SetEnvIfNoCase Request_URI _.utxt$ no-gzip
130
+
131
+ #DeflateCompressionLevel 4
132
+
133
+ AddOutputFilterByType DEFLATE text/plain
134
+
135
+ AddOutputFilterByType DEFLATE text/html
136
+
137
+ AddOutputFilterByType DEFLATE text/xml
138
+
139
+ AddOutputFilterByType DEFLATE text/css
140
+
141
+ AddOutputFilterByType DEFLATE application/xhtml+xml
142
+
143
+ AddOutputFilterByType DEFLATE application/xml
144
+
145
+ AddOutputFilterByType DEFLATE application/rss+xml
146
+
147
+ AddOutputFilterByType DEFLATE application/atom_xml
148
+
149
+ AddOutputFilterByType DEFLATE application/javascript
150
+
151
+ AddOutputFilterByType DEFLATE application/x-javascript
152
+
153
+ AddOutputFilterByType DEFLATE application/x-httpd-php
154
+
155
+
156
+
157
+ #�t�H���g
158
+
159
+ AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-opentype image/svg+xml
160
+
161
+ </IfModule>
162
+
163
+
164
+
165
+ FileETag none
166
+
167
+
168
+
169
+ <FilesMatch "^(wp-config.php|wp-mail.php|install.php|.ht)">
170
+
171
+ order allow,deny
172
+
173
+ deny from all
174
+
175
+ </FilesMatch>
176
+
177
+
178
+
179
+ <Files ~ ".(html|php|jpe?g|gif|png|css|js|pdf)$">
180
+
181
+ Header add Pragma "no-cache"
182
+
183
+ Header set Cache-Control no-cache
184
+
185
+ </Files>
186
+
187
+
188
+
189
+ ```
190
+
191
+
192
+
55
193
 
56
194
 
57
195
  何卒よろしくお願いいたします。