2013-04-22 2 views
11

.htaccess를 사용하여 http에서 https로 단일 페이지를 리디렉션하려고하는데 리디렉션 루프 오류가 계속 발생합니다.단일 페이지 http를 https로 리디렉션

코드 :

Redirect /secureform.html https://www.example.com/secureform.html 

그러나, 나는 "이 웹 페이지에서 리디렉션이 너무 많이있다"오류가 계속. 어떻게 이런 일이 일어나지 않게해야합니까?

RewriteEngine on 
RewriteCond %{HTTPS} off 
RewriteRule ^secureform\.html$ https://www.example.com/secureform.html [L,R=301] 

답변

16

이 시도

Redirect permanent /secure https://www.example.com 
+2

완벽하게 일했다! 정말 고마워! –

+1

@LizReeder 안녕하세요. 이 대답으로 문제가 해결되면 [accepting] (http://meta.stackexchange.com/a/5235)을 고려하십시오. –

-3

나는이 시도하고 나를 위해 작동합니다 :

관련 문제