Posts

Showing posts from January, 2013

How to automatically redirect between HTTP and HTTPS [PHP]

Using HTTPS allows for secure and encrypted communication between your web site and the visitor's browser. Sometimes the transition doesn't happen automatically  so we need to enforce that secure communication between the server and the client, e.g. when using a shopping cart.

One way to automatically switch from HTTP to HTTPS, using php, is a quick check of the HTTP indice in the $_SERVER array. From the php manual on $_SERVER:
$_SERVER is an array containing information such as headers, paths, and script locations. The entries in this array are created by the web server.

The iOS Design Cheat Sheet V2

The iOS Design Cheat Sheet V2 by Ivo Mynttinen is an excellent reference tool if you are an iOS developer. Ivo has organized display sizes and resolutions, as well as some other hardware data, for each device into nice, easy to follow data tables.

.htaccess: Option FollowSymlinks not allowed here [Apache]

If you ever receive the Apache/htaccess Symlinks error:
.htaccess: Option FollowSymlinks not allowed here
Simply replace FollowSymlinks with SymLinksIfOwnerMatch. It's just a security feature that makes your website more secure.