I am quite new to Apache HTTP Server.
I am using the mod_substitute to transform urls like
http://www.example.com/appName/...
into
http://www.example.com**/root**/appName/...
My problem is handling urls like
http://www.example.com/appName/.../appName.js
Because my rewrite rule
SetOutputFilter INFLATE;SUBSTITUTE;DEFLATE
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|/appName|/root/appName|i"
transform the above url in
http://www.example.com/root/appName/.../root/appName.js
and this will result in a 404 error.
Is there a way to substitute only the first occurrence with mod_substitute?
Any advice is appreciated.