Use .htaccess to force https without the www

I recently updated the hosting for a single page site which was first published five years ago, to only be accessible via a SSL and within a day or two Google had boosted it from nowhere to first place for the name of the brand. There really is no question that any successful site now needs to be accessible via https only nowadays then, but even if you can set this via cpanel you should also set it via an htaccess file. Why? Because it’s really easy to forget that this may still leave you with a duplicate content problem as your site is still available both with and without a preceding www.Read more »

Automatic copyright date using PHP

If you like to make your side projects in PHP, you’ll need to add a copyright message in the footer just in case it takes off and you want to establish ownership. Side projects however get quickly out of date because you make them in your spare time and that time is limited, but nobody wants to have to update their site(s) on New Years Day, so to avoid your site looking out of date every year, just use this little bit of PHP to automatically update the year.Read more »

Left or right, it’s a winner for Dnata Travel

It’s an unfortunate fact of life that creatives working for a business of any size will sometimes find themselves constrained by requirements which inevitably hamper their designs. Usually this is no more onerous than having to work within existing style guidelines, but occasionally it also includes particular ways of working which ties one hand behind your back. So it was after dnata acquired the company I worked for and wanted a transactional travel website. Read more »

A 5 star redesign for Travel Republic

I think we call all agree that waiting seven years before redesigning and refactoring a site is too long, but that was the task a new, small design team I joined in 2010 faced at Travel Republic. Whilst those who had preceded me had done their best to keep the site looking contemporary, the code had inevitably become bloated and dated. The backend worked well, and the online travel agent was both popular and profitable, but the frontend desperately needed to be made afresh. Read more »

Using SVGs as background images

If you create your own icons for your site you should already be using SVGs because of the obvious scalability benefits of the vector format. However many choose to convert these to a font using tools such as iconmoon or to use icon libraries like Font Awesome because it makes it easier to add and control icons with CSS. Using SVGs as background images tips the balance back to keeping your icons in-house.Read more »