Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- keep getting: The stylesheet http://127.0.0.1/inc/style/21.cssz was not loaded because its MIME type, "âtext/css", is not "text/css".
- .htaccess file:
- Options +Indexes
- Options +SymLinksIfOwnerMatch
- AddType text/javascript .js
- AddType text/x-javascript .js.gz
- AddType text/css .css
- AddType text/x-css .css.gz
- AddType video/ogg .ogm
- AddType video/ogg .ogv
- AddType video/ogg .ogg
- AddType video/mp4 .mp4
- AddType video/webm .webm
- AddType audio/mpeg mpga mp2 mp2a mp3 m2a m3a
- AddType audio/ogg oga ogg spx
- AddType audio/mp4 mp4a
- AddType audio/playlist m3u M3U
- AddType “text/javascript;charset=UTF-8″ .jgz
- AddEncoding gzip .jgz
- AddType “text/css;charset=UTF-8″ .cssz
- AddEncoding gzip .cssz
- <IfModule mod_rewrite.c>
- RewriteEngine On
- #Serve gzip compressed CSS files if they exist and the client accepts gzip.
- RewriteCond %{HTTP:Accept-encoding} gzip
- RewriteCond %{REQUEST_FILENAME}\.gz -s
- RewriteRule ^(.*)\.css $1\.cssz [QSA]
- # Serve correct content types, and prevent mod_deflate double gzip.
- RewriteRule \.cssz$ - [T=text/css,E=no-gzip:1]
- </IfModule>
- <IfModule mod_deflate.c>
- AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml
- BrowserMatch ^Mozilla/4 gzip-only-text/html
- BrowserMatch ^Mozilla/4\.0[678] no-gzip
- BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
- </IfModule>
- RewriteRule ^test\.html http://www.bb.com/? [R=301,L]
- <IfModule mod_headers.c>
- <FilesMatch "\.(js|css|xml|gz)$">
- Header append Vary: Accept-Encoding
- </FilesMatch>
- Header set Connection keep-alive
- <FilesMatch "\.html\.gz$">
- ForceType text/html
- Header set Content-Encoding: gzip
- </FilesMatch>
- <FilesMatch "\.js\.gz$">
- AddType text/javascript .js.gz
- AddEncoding gzip .gz
- ForceType text/javascript
- Header set Content-Encoding gzip env=FORCE_GZIP
- </FilesMatch>
- <FilesMatch "\.css\.gz$">
- ForceType text/css
- AddType text/css .js.gz
- AddEncoding gzip .gz
- Header set Content-Encoding gzip env=FORCE_GZIP
- </FilesMatch>
- <FilesMatch "\.cssz$">
- AddEncoding gzip .gz
- Header set Content-Encoding gzip env=FORCE_GZIP
- </FilesMatch>
- </IfModule>
- <IfModule mod_rewrite.c>
- #RewriteRule .? - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- #RewriteRule .? - [E=Authorization:%{HTTP:Authorization}]
- #ReWriteCond %{HTTP:accept-encoding} gzip
- #ReWriteCond %{REQUEST_FILENAME} !\.gz$
- #RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.gz -f
- #RewriteRule ^(.+\.js|.+\.css|.+\.html)$ $1.gz [L]
- #RewriteCond %{HTTPS} on
- #RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI}
- #
- #RewriteCond %{HTTP:Accept-encoding} gzip
- #RewriteCond %{REQUEST_FILENAME}\.gz -s
- #RewriteRule ^(.*)\.(html|css|js|data) $1\.$2\.gz [QSA]
- # Prevent double gzip and give the correct mime-type
- #RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=FORCE_GZIP]
- #RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=FORCE_GZIP]
- #RewriteRule \.html\.gz$ - [T=text/html,E=no-gzip:1,E=FORCE_GZIP]
- #RewriteRule \.data\.gz$ - [T=text/plain,E=no-gzip:1,E=FORCE_GZIP]
- </IfModule>
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresDefault "access plus 1 month"
- ExpiresByType text/css "access plus 1 month"
- ExpiresByType text/x-css "access plus 1 month"
- ExpiresByType text/x-javascript "access plus 1 month"
- ExpiresByType application/x-javascript "access plus 1 month"
- ExpiresByType application/x-gzip "access plus 1 month"
- ExpiresByType application/js "access plus 1 month"
- ExpiresByType application/javascript "access plus 1 month"
- ExpiresByType application/x-icon "access plus 1 year"
- ExpiresByType image/gif A2592000
- ExpiresByType image/png A2592000
- ExpiresByType image/jpg A2592000
- ExpiresByType image/jpeg A2592000
- ExpiresByType image/ico A2592000
- </IfModule>
- <IfModule mod_headers.c>
- Header set Cache-Control "max-age=1728000, public, must-revalidate"
- </IfModule>
- <Files 403.shtml>
- order allow,deny
- allow from all
- </Files>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement