1
如何創建一個Apache RewriteRule來捕獲以.xml結尾的任何請求URL,剝離.xml並將它傳遞給特定的腳本?Apache mod_rewrite來捕獲XML請求
http://www.example.com/document.xml, becomes http://www.example.com/document passed to script.php
如何創建一個Apache RewriteRule來捕獲以.xml結尾的任何請求URL,剝離.xml並將它傳遞給特定的腳本?Apache mod_rewrite來捕獲XML請求
http://www.example.com/document.xml, becomes http://www.example.com/document passed to script.php
我相信這應該是訣竅。
RewriteRule ^(.+)\.xml$ script.php?path=$1