WordPress .htaccess

WordPress .htaccess

WordPress .htaccess

you must add this to .htaccess in your root dir

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##


this is going to programm the Chrome or any browser of ther user to remember for one month

 

Teachers Info

E. Katsaniotis, MSc

E. Katsaniotis, MSc

  • Experience: since 2017 WordPress / Joomla
  • Website: https://wplecturer.com/
  • MSc   Software Systems Technology (1991) BSc BA CIS  (1989) Solaris 10 Admin 1 (2008) OCA DBA   11g  (2011)  Bio info: I started with WP in 2017, at the age of 55. I made this site in order to help others to learn it. My Web interests are WordPress, Joomla, Drupal, CodeIgniter, Gimp and, Moodle. I have worked as an Oracle...