0
어떻게 new.example.comhtaccess의 일부 문제!
에 example.com/또는 www.example.com에서 내 사용자를 리디렉션 할 수 있지만 같은 일부 특정 URL을 리디렉션 할 해달라고 :
www.example.com/test.php
api.example.com/testo.php
www.example.com/forum/index.php
내가 한 :
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^(.*)$ http://new.example.com/$1 [R=301,L]
그러나 URL에 대한 규칙은 무엇입니까?
내가 어떻게 할 수 있습니까? –
몇 가지 예제 코드를 추가했습니다. –