Skocz do zawartości
nateria

Włączenie kompresji gzip dla http

Polecane posty

Witam

Potrzebuje waszej pomocy icon_confused.gif

A mianowicie potrzebuje dodać kod z tej strony

https://panel.kylos....yarticle&id=111

 

Do swojego

pliku .htaccess

Czy powinienem dodać go do pliku public_html ---> moja domena i tam jest plik .htaccess

 

Czy tak powinienem go dodać icon_pytajnik.GIF?icon_pytajnik.GIF . Bo w folderze public_html Mam też plik .htaccess - ale on żadnej trećsi nie zawiera

# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

#<FilesMatch "\.(inc|php|php3|php4|php5|php6|phtml|phps)$">
#AddHandler x-httpd-php52 .php
#</FilesMatch>

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Do tego pliku .htaccess (co jest pusty ponoć) dopisz:

 

 

<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

 

Udostępnij ten post


Link to postu
Udostępnij na innych stronach

Zaloguj się, aby skomentować

Będziesz mógł dodać komentarz po zalogowaniu się



Zaloguj się

×