Tags » Htaccess

A Guide to Debugging in WordPress with your Reptilian Brain | WPShout

Since so many things can go wrong in a WordPress environment, it’s important to develop general WordPress bugfixing hunches. Debugging code is a huge part… 12 more words


Htaccess tips & tricks

In this tutorial i want to share my experience and tricks for .htaccess file.

1. Custom Directory Index Files

DirectoryIndex index.html index.php index.htm

You can change a default index file of directory by using above snippet in your htaccess file. 1,164 more words


Redirect All HTTP to HTTPS in Wordpress with .htaccess

I recently had a request from a client to transfer all web traffic on some WordPress site (www or no www) to all be forced over HTTPS. 188 more words


How to Remove .php, .html Extensions with .htaccess File

An .htaccess file is a simple ASCII file that you can create with a text editor like Notepad or Notepad++ . It provides a way to make configuration changes on a directory/folder. 474 more words


Block spam comments and hacking attempts via .htaccess

deny from
deny from
deny from
deny from
deny from
deny from
deny from
deny from
deny from… 6,466 more words

Bad Bot

How to increase speed of your website


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 application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"

# Set Pragma header
Header set Pragma "public"
# Set Cache-Control header
Header append Cache-Control "public, must-revalidate, proxy-revalidate"

# Set Entity Tag header
FileETag MTime Size

# END Headers: Ensure client-side caching of objects

Header unset Pragma
FileETag None
Header unset ETag