How to use mod_sed through .htaccess

Discussion in 'Apache' started by neosmith2012, May 17, 2012.

  1. #1
    Hello,

    I have been struggling to make mod_sed work through .htaccess. Here is my .htaccess file:

    Options +FollowSymlinks
    <IfModule mod_sed.c>
    AddOutputFilter Sed html
    OutputSed "s/monday/MON/g"
    </IfModule>

    When I use this I get http error 500 (internal server error). What am I doing wrong?

    The mod is installed successfully:

    httpd -M | grep sed
    Syntax OK
    sed_module (shared)
     
    neosmith2012, May 17, 2012 IP