SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Jan 2012
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    i got seriously problem with page speed.

    hello. i want to use gzip for my web. so i am start to searching google. then 2 code.

    1 > what must i do with this code?where i must put it???
    gzip-css.php
    <?php
    ob_start ("ob_gzhandler");
    header("Content-type: text/css; charset: UTF-8");
    header("Cache-Control: must-revalidate");
    $offset = 60 * 60 ;
    $ExpStr = "Expires: " .
    gmdate("D, d M Y H:i:s",
    time() + $offset) . " GMT";
    header($ExpStr);
    ?>

    then htaccess addons

    HTACCESS ADDON <<< where must i put??

    AddHandler application/x-httpd-php .css
    php_value auto_prepend_file gzip-css.php
    php_flag zlib.output_compression On

    any one can helping me out from my problem??
    thanks

  2. #2
    SitePoint Wizard
    Join Date
    Dec 2003
    Location
    USA
    Posts
    2,582
    Mentioned
    29 Post(s)
    Tagged
    0 Thread(s)
    Umm... you would put the htaccess addon in a file called .htaccess in the root of your website, along with the other file.

    However, if you are having serious speed problems, this isn't going to help much (and in fact will likely multiply your issues).


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •