If you were a user of the Halo Photography Gallery then uploading of fies and screenshots is now working, I kind of forgot to check that it was still possible to upload after upgrading servers from the US (Dreamhost) to the UK(EukHost), Oppsy.
I’ve made a few adjustments just to make things run a bit smoother, one of the things I did was to change the url location of the old Photography gallery from halo.snaver.net/Photography/ to halo.snaver.net/photography/. Now it doesn’t seem like a big change, but simply de-capitalizing the p in photography messes everything up giving off 404 errors everywhere.. anyway I created two folders, one Photography and one photography, this can exist on a linux system as it respects caps. In the old script I had this to redirect all old requests to the new location, all without the use of odd complex .htacces code, enjoy! Remember you have to have some code in your .htacess file to direct all requests to index.php for this to work
$v) {
if ($lv) {
$command[$lv]=$v;
$lv = false;
}
else
{
$command[$v]="";
$lv = $v;
}
}
return $command;
}
$command = processURI ($_SERVER['REQUEST_URI']);
//print_r($command);
//echo "http://halo.snaver.net/photography/".$command[Photography]."";
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://halo.snaver.net/photography/".$command[Photography]."");
?>
Related posts:
- H.S.N Photography Gallery Reaches 1000 Images!
- Halo.Snaver.net Photography Gallery Updated
- stat failed filemtime() Codeigniters assetlib-pro on a plesk server
- Website updated & Shoutout to CabooseJr
- General Site Maintenance
Tags: coppermine, EUKhost, Halo, Halo Photography, PHP, update