How to remove file extention from URLs with .htaccess?
It's pretty easy just add the following code in .htaccess file
RewriteRule ^contact$ contact.php [L]

To enable the laverage browser caching you have to do two things. 

Add the following code into your .htaccess file 

<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"

And you have to enable mod expires for your server.

That can be done by the following line using ssh 

a2enmod expires

  • we accept: