Ondersteuning » Code oplossingen gezocht » website comprimeren met mod_gzip en mod_ deflate in htaccess bestand

  • hallo,
    volgens deze advies:
    Some popular browsers cannot handle compression of all content so you may want to set the gzip-only-text/html note to 1 to only allow html files to be compressed If you set this to anything but 1 it will be ignored.
    zo ik heb 2 code toegevoegd (in htaccess)om comprimeren te activeren behalve bepaalde browsers(ik heb het bij deze 2 regels opmerking gedaan om u duidelijk te maken).
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    (mod_gzip_on Yes) ik heb deze code togevoegd om compressie in te schakelen
    (SetOutputFilter DEFLATE
    SetEnvIfNoCase Request_URI “\.(?:gif|jpe?g|png)$” no-gzip) ik heb deze code ook toegevoegd om alles te comprimireren behalve bepaalde browsers welke heeft mooite met comprimireren
    </IfModule>
    # END WordPress
    nu ik wil u voor mij te corrigeren wat ik het niet goed of te kort gedaan!!!
    mij provider strato gebruikt maakt van Apache server.
    dank u wel
    johannes

1 reactie aan het bekijken (van in totaal 1)
  • Thread starter johannes999

    (@johannes999)

    ik heb het opgelost deze is de code voor comprimeren:
    <ifModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/json
    </ifModule>

    en heeft gewerkt.
    dank u wel
    johannes

1 reactie aan het bekijken (van in totaal 1)
  • Het onderwerp ‘website comprimeren met mod_gzip en mod_ deflate in htaccess bestand’ is gesloten voor nieuwe reacties.