Originally Posted by
mr_green
When you found it
try that code if is working
PHP Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domaine.com$
RewriteCond %{SERVER_PORT} ^80$
RewriteRule (.*)$ http://www.domaine.com/$1 [R=301,L]
AddType application/x-httpd-php5 .php
AddType application/x-httpd-php5 .html .htm
AddType application/x-httpd-php5 .js
# 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]
</IfModule>
# END WordPress
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)$">
Header set Expires "Thu, 15 Apr 2015 20:00:00 GMT"
</FilesMatch>
<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header unset ETag
FileETag None
</FilesMatch>
<FilesMatch "\.(avi|mov|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
reload you page if you get a 500 internal server --- >delete block by block this code
PHP Code:
AddType application/x-httpd-php5 .php
AddType application/x-httpd-php5 .html .htm
AddType application/x-httpd-php5 .js
this is the most important code force php5 compress .html compress.
js
if is working for you can try to
PHP Code:
AddType application/x-httpd-php5 .css
to compress css
working for my host but i know some server need a different config
You must compress .
js .css is mandatory
ok I've tried this code on my side and I got this information :
Warning: Cannot modify header information - headers already sent by (output started at /home/ql126469/public_html/gamejobs.pl/
wp-content/themes/jobroller/includes/theme-functions.php:1001) in /home/ql126469/public_html/gamejobs.pl/
wp-includes/pluggable.php on line 934
Can somebody help me?