Fallback Resource

If you’re like me, then you are useless at remembering a couple of things which tend to start a project. I recently found the “FallbackResource” command in Apache.

This single command replaces the mod_rewrite rules:

	RewriteEngine On
	RewriteBase /
	RewriteRule ^index\.php$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /index.php [L]

with the single command

FallbackResource /index.php

I can remember that one! It basically does the same thing – If the file does not exist (any file, such as css/images/PHP scripts) then it will route it to index.php.

Tagged with: , ,


Hello, I’m Alan Farquharson. If you are here, I guess you already know that, though!

I have just finished my Computing Degree at Manchester Metropolitan University (MMU), gaining a 2.1 Bachelor’s_degree with honours.

During my 3rd year at University I did a placement year. I worked at Chameleon Interactive, with the role Web Developer  and as the Server Administrator, with a team of guys from all over Manchester. I worked on projects such as AMREFHelpAgeNorth West Air Ambulance and NASS. Whilst there, I developed my skills in PHP (OOP and procedural), MySQL, HTML, AJAX/JavaScript, XML, RSS, Photoshop and SSH (Linux – Mainly RHEL (Cent-OS/Fedora) and Debian (Ubuntu) based systems).

Since then, I’ve worked at www.magmadigital.co.uk – I worked here from April 2012 to December 2016, working my way up to Senior Web Developer and have been working on internal and external  Web Applications for all sorts of large and medium sized projects. Whilst at Magma, I also helped run the PHPNW conference, which runs (usually) the first October of the year.

Since December 2016, I’ve worked at www.purple.ai working on the portal system used worldwide by a few hundred thousand customers every 24 hours!