2016-11-07 1 views
0

나는 흰색 내가 다른 URL로 리디렉션하려고 공간 만이 포함 된 URL이 일부 URL은 매핑 파일이ISAPI_ReWrite 리디렉션

tours/cycle%20tour.htm cycle-tours.html 
과 같은

일치하지 않는 방법

나는

"tours/cycle%20tour.htm" cycle-tours.html 
"tours/cycle tour.htm" cycle-tours.html 
tours/cycle\ tour.htm" cycle-tours.html 
tours/cycle\stour.htm" cycle-tours.html 

하지만 기회와 같은 많은 방법을 시도했다. 어느 누구도 나를 도울 수 있습니까

+0

'tours/cycle \ tour.htm'이 맞습니다. 그래서 그 질문은 왜 일치하지 않습니다. 1. 현재 사용중인'.htaccess' 스타일의 파일 2. 들어오는 _precise_ 요청 3. '.htaccess' 스타일 파일을 놓은 위치 4. 재 작성 엔진 내부에서 실제로 무엇이 진행되고 있는지를 알기 위해서는 "다시 쓰기"를 켜야 할 수도 있습니다. – arkascha

답변

0

테스트 문자열에 공백을 인코딩해야합니다. 다음과 같이 사용하십시오 :

RewriteEngine On 

RewriteMap map_txt txt:text_map.txt 
RewriteMap map_escape int:escape 

RewriteCond ${map_txt:${map_escape:$1}|NOT_FOUND} (.*) 
RewriteCond %1 !NOT_FOUND 
RewriteRule (.+) %1 [R]