htaccess ile gzip desteği - gzip with htaccess

şimdi size burada vereceğim kodla htaccess dosyanızla hiçbir php dosyasına dokanmadan gzip desteğini açabilirsiniz..
within the code i’ll give you here, you can enable gzip support with haccess.

bu kodu serverınızın ana klasöründeki .htaccess dosyasına atın,
add this code into your web server’s .htaccess file

    # preserve bandwidth for PHP enabled servers
    <ifmodule mod_php4.c>
    php_value zlib.output_compression 16386

    php_flag zlib.output_compression On
    php_value zlib.output_compression_level 1

eğer htaccess dosyası yoksa bir text dosyası yaratın .htaccess dosya adı ile ve atın yeterli ;)

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

8 Responses to “htaccess ile gzip desteği - gzip with htaccess”


  1. 1 ETNa

    Kodu Gerekli Yere Attıktan Sonra Internal Server Error hatasıylan Karşılaştım kodu htaccess dosyasından çıkardıktan sonrada o hatayı verdi, sildim site açıldı, valla beni korkuttu…

  2. 2 SoulSmasher

    htaccessde en alta eklemelisiniz…

    internal server hatası veriyorsa bir veri çakışıyor demektir.. htaccessde ya da kullandığınız scriptte gzip desteği vs aktifse hata verir

    bir de htaccessde en üst satıra RewriteEngine on
    kodunu ekleyin

  3. 3 erkan

    ben dediğiniz gibi yapdım ama site hayla gzip kapalı gözüküyor forumda da gizip açık ama kapalı gözüküyor

  4. 4 SoulSmasher

    @erkan - o zaman hostunuzda gzip desteği bulunmamakta hem php den hem htaccessden açamıyorsanız hostunuzla görüşüp gzip modülünü kurmalarını talep edin

  5. 5 buask

    Sanırım safe_mode off durumunda ise çalışıyor?

  6. 6 admin

    her ikisi de :)

  7. 7 Emir Buğra KÖKSALAN

    Dostum iyi hoş da şu php5 için de bi çözüm bulsan çok süper olurdu hani. Verdiğin örnek php4te geçerli. Ben araştırdım ama bi çözüm bulamadım.

  8. 8 admin

    php5 php4e uyumludur çalışması gerekli

Leave a Reply

This is a captcha-picture. It is used to prevent mass-access by robots. (see: www.captcha.net)

You must read and type the 5 chars within 0..9 and A..F, and submit the form.

  

Oh no, I cannot read this. Please, generate a