2012-07-16 3 views

답변

0

RewriteRule의 정규 표현식 일치 (첫 번째 인수)는 호스트 이름을 포함하지 않는 URI,에 대해 일치합니다. 당신이 절대적으로 확인 요청이 www.junaphotography.com 호스트인지 확인해야 할 경우 RewriteCond 추가

RewriteRule ^/?100moments/?$ http://www.junaphotography.com/100Moments/ [L,QSA] 

:

RewriteCond %{HTTP_HOST} ^www.junaphotography.com$ [NC] 
RewriteRule ^/?100moments/?$ http://www.junaphotography.com/100Moments/ [L,QSA] 
+0

감사 존을 당신은 호스트 이름을 생략 할 수 있습니다. 불행히도 그것은 작동하지 않았다. 이것은 한 일이었습니다 : 'code'RedirectMatch/100moments http : // www.junaphotography.com/100Moments /'code' – nedryk

+0

규칙 앞에 어딘가에'RewriteEngine On' 지시자가 있었습니까? –

관련 문제