도메인의 하위 디렉토리 페이지 만 하위 도메인으로 리디렉션하려고합니다. 예를 들어, 내가 원하는 :htaccess 301 하위 도메인으로 리디렉션
http://www.example.com/test.htm
나는 htaccess로 파일에 사용하고
http://shop.example.com/test.htm
RedirectMatch에
하려면입니다 :RedirectMatch 301 http://www.example.com/(.*) http://shop.example.com/$1
내가 왜 확실 해요 작동 안됨?
'mod_rewrite' 사용해야하지'mod_alias', RedirectMatch' 도메인에 대해 아무것도 모르는'로. – Cheery
http://httpd.apache.org/docs/2.2/mod/mod_alias.html#redirectmatch : _ "제공된 정규 표현식이 ** URL 경로 **와 일치합니다."_ – CBroe