Skip to content

Instantly share code, notes, and snippets.

View aquarion's full-sized avatar
💫
The More You Know

Nicholas Avenell aquarion

💫
The More You Know
View GitHub Profile
<?PHP
// @todo: deal with multiple options a bit better.
header("HTTP/1.1 404 File Not Found");
$purl = parse_url($_SERVER['REQUEST_URI']);
$host = $_SERVER['HTTP_HOST'];
<VirtualHost *:80>
ErrorDocument 404 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/404/index.php
ErrorDocument 410 /.EverythingIsCatchingOnEverythingIsCatchingOnFire/410/index.php
Alias /.EverythingIsCatchingOnEverythingIsCatchingOnFire /var/www/hosts/errors
DocumentRoot /var/www/
AddType text/html .shtml