本文へスキップ

.htaccess https 리다이렉팅

MintState 2018年7月30日 16:04 閲覧 7592

.htaccess https 리다이렉팅

아파치에서 http로 시작하는 URL을 https로 Redirect 방법

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{THE_REQUEST} !test.html [NC]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

예외 URL은 RewriteCond %{THE_REQUEST} !test.html [NC] 처럼 추가하면 됩니다.

共有 X Facebook LINE QR コード

コメント 0 件

最初のコメントを書いてみましょう。