How can I leverage browser cache for minified JS or minified CS files?

Yeah, you can do leverage browser caching for minified js & css files same as we do for other files. <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access 1 year” ExpiresByType image/gif “access 1 year” ExpiresByType image/png “access 1 year” ExpiresByType text/css “access 1 month” ExpiresByType text/html “access 1 month” ExpiresByType … Read more

Rewrite Rules not redirecting rewrite

Ok managed to figure this out, instead of adding action for a rewrite. Because what I was wanting to rewrite was a taxonomy i should have been using something like this : ‘rewrite’ => array(‘slug’ => ‘listings/make’, ‘product_make_model’ => false) When registering the taxonomy, which basically rewrites the slug as the taxomomy is created/registered. Works … Read more

How to deny access to a particular wordpress site url

You can prevent access to the file in question by modifying your .htaccess file or creating one, should you have none, with content as follow: # BEGIN Prevent access to README <Files “README”> order allow, deny deny from all </Files> # END Prevent access to README Please note: your .htaccess file should be located in … Read more

Redirect all subdomains to root domain

The following .htaccess will only work if the subdomain is assigned in your DNS setting using either a single DNS record or a wildcard DNS record. If your DNS setting doesn’t have that record, request to your subdomain will not reach to your server. So the .htaccess will not work. If you don’t know how … Read more