###WebサーバーApacheに関してです。
先日SSL証明書を取得しました。
そこで、HTTPからHTTPSにリダイレクトするため.htaccsessに以下を記述しました。
<Files ~ "^\.(htaccess|htpasswd)$"> deny from all </Files> Options -Indexes ErrorDocument 400 https://xxx.net/assets/error/400.html ErrorDocument 401 https://xxx.net/assets/error/401.html ErrorDocument 402 https://xxx.net/assets/error/402.html ErrorDocument 403 https://xxx.net/assets/error/403.html ErrorDocument 404 https://xxx.net/assets/error/404.html ErrorDocument 405 https://xxx.net/assets/error/405.html ErrorDocument 406 https://xxx.net/assets/error/406.html ErrorDocument 407 https://xxx.net/assets/error/407.html ErrorDocument 408 https://xxx.net/assets/error/408.html ErrorDocument 409 https://xxx.net/assets/error/409.html ErrorDocument 410 https://xxx.net/assets/error/410.html ErrorDocument 411 https://xxx.net/assets/error/411.html ErrorDocument 412 https://xxx.net/assets/error/412.html ErrorDocument 413 https://xxx.net/assets/error/413.html ErrorDocument 414 https://xxx.net/assets/error/414.html ErrorDocument 500 https://xxx.net/assets/error/500.html ErrorDocument 501 https://xxx.net/assets/error/501.html ErrorDocument 502 https://xxx.net/assets/error/502.html ErrorDocument 503 https://xxx.net/assets/error/503.html ErrorDocument 504 https://xxx.net/assets/error/504.html ErrorDocument 505 https://xxx.net/assets/error/505.html <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L] </IfModule> DirectoryIndex index.html index.php index.png order deny,allow
としているのですがリダイレクトできません。
何故かわかる方よろしくお願いします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2016/06/01 12:09
2016/06/01 12:25
退会済みユーザー
2016/06/04 11:30