Ask Me Help Desk

Ask Me Help Desk (https://www.askmehelpdesk.com/forum.php)
-   PHP (https://www.askmehelpdesk.com/forumdisplay.php?f=454)
-   -   Simultaneously enable gzip and $STR_REPLACE in CGI in apache (https://www.askmehelpdesk.com/showthread.php?t=819812)

  • Dec 26, 2015, 11:30 AM
    bbs212
    Simultaneously enable gzip and $STR_REPLACE in CGI in apache
    I have a code in my CGI script for text replacement (for example replace 'red' with 'blue')
    $STR_SEARCH='red'
    $STR_REPLACE='blue'
    I am using the below code in .htaccess for enable replace function: (RequestHeader unset Accept-Encoding)
    This work fine. But when I want to use gzip for compression, gzip does not work. If I disable the replace, gzip works fine. Please help me understand how I can enable the replace and gzip simultaneously?

  • All times are GMT -7. The time now is 10:47 PM.