리디렉션 301, 500에러나요
RewriteEngine on
RewriteCond %{SERVER_PORT} ^80$
RewriteCond %{REQUEST_METHOD} !^POST$ [NC]
RewriteRule ^(.*)$ http://www.google.com/$1 [L,QSA,R=301]
RewriteCond %{SERVER_PORT} ^443$
RewriteCond %{REQUEST_METHOD} !^POST$ [NC]
RewriteRule ^(.*)$ https://www.google.com/$1 [L,QSA,R=301]
추가했는데 301을 안하면 상관없는데 301로 리디렉션 걸면
아래처럼 경고가 나옵니다...
이런경우가 있나요? ㅜㅜ 카페24에서 소스 에러 검사했을때는 별문제 없는데 리디렉션만 걸면 저렇게 되네요
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at postmaster@cpfl6478.mycafe24.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 301 Moved Permanently error was encountered while trying to use an ErrorDocument to handle the request.
답변 2개
답변을 작성하려면 로그인이 필요합니다.
로그인