First go to: http://www.checkgzipcompression.com
Yoast SEO -> edit files
or access .htaccess directly
Paste under:
# END WordPress
# compress text, html, javascript, css, xml:
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
AddType x-font/otf .otf
AddType x-font/ttf .ttf
AddType x-font/eot .eot
AddType x-font/woff .woff
AddType image/x-icon .ico
AddType image/png .png
then paste:
for htaccess protection
<Files .htaccess>
order allow,deny
deny from all
</Files>
for wp-config protection
<Files wp-config.php>
order allow,deny
deny from all
</Files>
this has nothing to do with boosting your websites speed, but is essential for your website security. Since many of you don´t know about this, I decided to throw it in as an off topic remark.
Enable smush.it, compress all files, disable
don´t use if you are photographer etc, compresses them too much
Security + Speed
Sign up
go to W3 Total Cache
Appearance -> Editor -> Theme Functions
function _remove_script_version( $src ){
$parts = explode( ‘?ver’, $src );
return $parts[0];
}
add_filter( ‘script_loader_src’, ‘_remove_script_version’, 15, 1 );
add_filter( ‘style_loader_src’, ‘_remove_script_version’, 15, 1 );
at the end insert this
Sign Up
add website
Go to „Finished adding“
Choose Free Plan
CDN + basic
Go to your Hosting Provider
Select Domain Panel
Change nameserver. If not working watch out for spaces. Dont work with spaces
How To Speed Up Your Wordpress
No comments:
Post a Comment