Apache mod_rewrite捕获XML请求
时间:2020-03-06 15:00:18 来源:igfitidea点击:
如何创建apache RewriteRule来捕获以.xml结尾的任何请求URL,剥离.xml并将其传递给特定脚本?
http://www.example.com/document.xml, becomes http://www.example.com/document passed to script.php
解决方案
我相信,这应该可以解决问题。
RewriteRule ^(.+)\.xml$ script.php?path=