제가 어느부분을 잘못 썼는지 좀 봐주실 분 계시면 고쳐주세요 ㅠ ㅠ
Copy
AddType application/x-httpd-php .htm .html#HTTPSへリダイレクトRewriteEngine OnRewriteBase /RewriteRule ^join/form\.html$ https://www.test.or.jp/join/form.html [R=301,L]RewriteRule ^site/contact\.html$ https://www.test.or.jp/site/contact.html [R=301,L]#404 not foundErrorDocument 404 http://www.test.or.jp/site/404.html#wwwの有り無し統一RewriteCond %{HTTP_HOST} ^(test\.or\.jp)(:80)? [NC]RewriteRule ^(.*)$ http://www.test.or.jp/$1 [R=301,L]RewriteEngine off
|
답변 2개 / 댓글 2개
2015-07-14 (화) 14:56:20
테스트는 안해봤지만.. 아래처럼 수정을 해보세요.
Copy
RewriteCond %{HTTPS} offRewriteRule ^join/form\.html$ https://www.test.or.jp/join/form.html [R=301,L]RewriteCond %{HTTPS} offRewriteRule ^site/contact\.html$ https://www.test.or.jp/site/contact.html [R=301,L]
답변에 대한 댓글 1개
nanati
2015-07-14 (화) 15:03:32
2015-07-14 (화) 14:45:05
마지막에 RewriteEngine off 을 꼭 써야하는 건가요?
rewrite rule 설정에서 RewriteEngine off 를 쓰는 경우는 못 본 듯 한데요.
답변에 대한 댓글 1개
nanati
2015-07-14 (화) 14:45:41
아.. 이래저래 넣어보고 무한루프되서 써야 하나 싶어서 써봤는데
것두 안먹히네요 쓰나 안쓰나 ㅠ ㅠ...
것두 안먹히네요 쓰나 안쓰나 ㅠ ㅠ...
답변을 작성하려면 로그인이 필요합니다.
이상하게 페이지가 다운로드 되어버리네요 ... ㅠ ㅠ
보여드릴 수 없는 게 참 답답합니다 하하하
답변 감사드립니다~~