내 연락처 페이지를 https 쓰로 .htaccess moderewrite로 리디렉션하고 싶습니다..htaccess 다시 쓰기 규칙을 사용하여 특정 페이지 만 https로 리디렉션
이것은 내 연락처 페이지의 URL입니다. http://mywebsite.com/index.php?route=information/contact (이것은 오픈 카트 웹 사이트입니다).
이 내용을 https로 리디렉션하는 올바른 다시 쓰기 규칙은 무엇입니까?
내 연락처 페이지를 https 쓰로 .htaccess moderewrite로 리디렉션하고 싶습니다..htaccess 다시 쓰기 규칙을 사용하여 특정 페이지 만 https로 리디렉션
이것은 내 연락처 페이지의 URL입니다. http://mywebsite.com/index.php?route=information/contact (이것은 오픈 카트 웹 사이트입니다).
이 내용을 https로 리디렉션하는 올바른 다시 쓰기 규칙은 무엇입니까?
시도 :
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(/index.php?route=information/contact) https://mywebsite.com$1 [L,R=301]
이 (OP는 "mod_rewrite는"함께 할 방법을 물어)
그냥 간단한 "그이는"리디렉션 :
Redirect 301 http://mywebsite.com/index.php?route=information/contact https://mywebsite.com/index.php?route=information/contact