equivalent to mod_substitute

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.

AddOutputFilterByType SUBSTITUTE text/html
Substitute "s|</body>|<script> /*we will do something here*/ </script></body>|ni"
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: