Allow access to specific file types in a protected directory

For security reasons, many users like to protect directories from intrusion. This prevents people from injecting php or other malicious code or scripts into the directories. However, locking down a directory entirely may prevent access to specific tile types you do wish people to view, such as images. The instructions below will explain how to Read More >

Allow public access to a file in a protected directory using .htaccess

Within your website structure, there are many times when you may want to protect directories from outside access. This prevents any user from accessing a subdirectory of your site, and its files, without a username and password. There may be a time, however, when you want to allow access to a single file within a Read More >

How to Add mod_expires to your .htaccess

When visiting a website, the website will cache in your browser. This cache can be controlled by configuring your Cache-Control HTTP headers for your website This is done by adding mod_expires in the .htaccess file of your server. If you don’t set your Cache-Control for the HTTP headers, then, you will have a longer wait Read More >