Use htaccess to redirect to a Down For Maintenance page

October 30, 2011 in Apache & htaccess, Programming, Tutorials by admin

Web developers will no doubt need to limit access to their websites during a maintenance time when files are being updated on the server. You have probably seen these pages on various websites with the page decorated in funny images and quotes letting you know the website is offline. There is a really easy way to redirect your website visitors to a maintenance page with only a few lines of text.

Create your own URL shortener with PHP

December 21, 2010 in PHP, Programming, Tutorials by admin

Link shortening websites have been popping up all over the web with the huge explosion in micro blogging requiring a character limit in posts. Sites like bit.ly have become an integral part of twitter in order to maximize the quality of posts. If you are reading this article you probably already know this and just want to know how they are able to shrink down large links and transform them into a very tiny one. We can achieve this with PHP, and the hardest part can be done in just one line of code. Yes it really is that simple.

Get PHP to work in HTML files (.html) with htaccess

November 14, 2010 in Apache & htaccess, Tutorials by admin

If you have ever wondered how people are able to execute PHP in .html files, the trick is easy and works with the .htaccess file. The .htaccess allows us to do many customizations with how we can display our urls.