Optimizing your WordPress info and news website with caching it in htaccess

If you want to speed up your Wordpress website, you could do it by adding the following code in your .htaccess.

That solution is perfer mostly for those who run News or Informational websites based on WordPress.

RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
RewriteCond %{REQUEST_URI} !^/(wp-|xmlrpc\.php)
RewriteCond %{HTTP_COOKIE} !(comment_author_|wordpressuser_|wp-postpass_|wordpress_logged_in_) RewriteRule .* - [E=Cache-Control:max-age=300]


Was this article helpful?

mood_bad Dislike 0
mood Like 2
visibility Views: 387