当前配置:
Alias /wcsstore "/opt/IBM/WebSphere/AppServer/profiles/demo/installedApps/WC_demo_cell/WC_demo.ear/Stores.war"
示例网址:
http://okdemo/wcsstore/test.txt
如何让它首先查找现有文件/opt/IBM/test/test.txt
并使用原始目录作为后备目录?
试过:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^/wcsstore/(.*) /wcsstore-old/$1 [PT,L]
Alias /wcsstore "/opt/IBM/test"
Alias /wcsstore-old "/opt/IBM/WebSphere/AppServer/profiles/demo/installedApps/WC_demo_cell/WC_demo.ear/Stores.war"
但似乎REQUEST_FILENAME
并没有解决/opt/IBM/test/test.txt
。一切都从后备目录提供:
RewriteCond: input='/wcsstore/test.txt' pattern='!-f' => matched
也许我应该连接:/opt/IBM/test%{REQUEST_URI}
,但是如何/wcsstore
在连接之前删除这个词?