mod_alias rule:
/water /local/path1/water
Target URLs:
http://www.mysite.com/water/css/style.css
http://www.mysite.com/water/js/java.js
Actual URLs:
http://www.mysite.com/water/css.php?src=style.css
http://www.mysite.com/water/js.php?src=java.js
Mod rewrite rule:
RewriteEngine on
RewriteCond /local/path1/water%{REQUEST_URI} !-d
RewriteCond /local/path1/water%{REQUEST_URI} !-f
RewriteRule ^/water/css/([^/]+)$ /local/path1/water/css.php?src=$1 [PT]
RewriteRule ^/water/js/([^/]+)$ /local/path1/water/js.php?src=$1 [PT]
Problem: it's not working and I am getting 404 errors and the error says this
script /www/mysite.com/htdocs/css.php
not found or unable to start