Apache / Server Tutorials

  • Advanced Branding – Give Your Pages A Custom Extension Using .htaccess SetHandler

    A sign of a good website is one that does the "little things" to increase the usability or value to the user. There are other little things you can do to enhance your website, including giving your pages a custom extension.

  • Hide Your .htaccess Settings Using … .htaccess

    Your .htaccess file can hold a good amount of information about the structure of your website, some of which should not be exposed to users. These settings include mod_rewrite settings, php_flag/php_value settings, and SetHandler directives.

  • Set Your Directory Index (Homepage) Using .htaccess

    As every web developer knows, the server default for a directory's default file is index.{extension}. Apache is usually set to index.php or index.html. It's a good practice to set your DirectoryIndex setting in your .htaccess file, especially if you're hosting your website on shared hosting. A hosting provider's guidelines could change at any time but your .htaccess file's directive would prevent any problem for you.

  • Fixing IIS & PHP Variables – Set $_SERVER['REQUEST_URI'] Yourself

    About 8 months into my programming career I needed to code a content management system (CMS). This was quite a challenge so early into my professional journey but I was up to it. The front-end was the easiest part of the project — a lot quick SQL queries for bringing intros and conclusions to pages that needed to be static due to PHP programming, a sub-navigation builder (the menu was stored in the DB), and the usual take-forever forms.