我的目标是将非 jsp URL 重定向到不同的子文件夹
浏览器网址
- http://mydomain.com/site-Xghthhg/css/styles1/layouts.css
- http://mydomain.com/site-Xghthhg/jslibs/jquery/jquery.js
- http://mydomain.com/site-Xghthhg/jslibs/jquery/plugins/jd/jquery.jd.js
代理到
- http://mydomain.com/map/css/styles1/layouts.css
- http://mydomain.com/map/jslibs/jquery/jquery.js
- http://mydomain.com/map/jslibs/jquery/plugins/jd/jquery.jd.js
httpd.conf
RewriteCond %{REQUEST_FILENAME} !(.+\.jsp)
RewriteCond %{REQUEST_URI} ^/site-(.*)/^(.*)$
RewriteRule ^/site-(.*)/^(.*)$ /map/$2 [P]
我不明白为什么它不起作用!