Bei mir läuft die MOD, bis auf einen winzigen Punkt:
elseif (strstr($url, 'postcards.php?image_id=')) {
preg_match('#image_id=([0-9]+)&?#', $url, $matches);
if (isset($matches[1])) {
$split = explode('?', $url);
$url = $split[0];
$query = @$split[1];
$url = str_replace('postcards.php', 'postcard.img'.$matches[1].'.htm', $url);
$query = str_replace('image_id='.$matches[1].'&', '', $query);
$query = str_replace('&image_id='.$matches[1], '', $query);
$query = str_replace('image_id='.$matches[1], '', $query);
if (!empty($query)) {
$url .= '?' . $query;
}
}
}
Die Postkart-Short-URL haut nicht hin, es kommt ne 404-Fehlermeldung. Ich hab das jetzt erstmal entfernt, bzw. zu folgendem abgeändert:
elseif (strstr($url, 'postcards.php?image_id=')) {
}