Posts about htaccess

  • I occasionally have a need to divert file requests on a website to a PHP script. By doing so, I can determine whether the visitor may access it, see whether an image should have a watermark automatically applied, or notify an administrator that a PDF has been viewed or downloaded. The easiest way to do…

  • The tourism organization for Lake Lucerne has just launched a great-looking new website. Modern design, nice typography, beautiful pictures and a simple navigation all add to the experience. But one small improvement could be made by adding a few simple lines of code to the .htaccess file: making sure that visitors to the site automatically…