문제

.xml에서 끝나는 요청 URL을 포착하고 .xml을 벗고 특정 스크립트로 전달하는 Apache Rewriterule을 어떻게 작성합니까?

http://www.example.com/document.xml, becomes http://www.example.com/document passed to script.php
도움이 되었습니까?

해결책

이것은 속임수를해야합니다.

RewriteRule ^(.+)\.xml$ script.php?path=$1
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top