equivalent to mod_substitute

#1
I understand that .htaccess directives would still work.

Is there an equivalent module to apache's mod_substitute in litespeed so that, for instance, I could put this in .htaccess and rewrite all http output.

Code:
AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|</body>|<script> /*we will do something here*/ </script></body>|ni"
 
#7
I see, thanks.

I need something of a more universal application. I need to be able to add tracking to all html output on a server.

mod_substitute and .htaccess is perfect for that. Let's you change "</body>" to "jstracking</body>" for all pages regardless of cms or sitebuilder, and doing it from an .htaccess directive let's you customize it per domain.
 
Last edited:
Top