사이트 주소 강제로 바꾸는거 설정질문합니다. 채택완료
그누매니야1
2년 전
조회 1,115
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !todaysecret.com$ [NC]
RewriteRule ^(.*)$ https://todaysecret.com/bbs/links.php?url=http://todaysecret.com/" rel="nofollow" target="_blank">http://todaysecret.com/$1 [L,R=301]
이거 맞나요 ?
댓글을 작성하려면 로그인이 필요합니다.
답변 3개
채택된 답변
+20 포인트
2년 전
RewriteEngine on
RewriteRule ^(.*)$ <a href="https://새도메인.com/" target="_blank" rel="noopener noreferrer">https://새도메인.com/</a> [R=301,L]
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변에 대한 댓글 2개
�
우다다다
2년 전
서버가 apache 맞나요?
�
그누매니야1
2년 전
ㅠㅠ 잘모르겠습니다. 호스팅 업체에 문의해야 하나요 ?
댓글을 작성하려면 로그인이 필요합니다.
마르스컴퍼니
Expert
2년 전
RewriteEngine On
RewriteCond %{HTTP_HOST} !^todaysecret.com$ [NC]
RewriteRule ^(.*)$ http://todaysecret.com/$1 [L,R]
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인