ich hab mir mal ein kleines script gebaut, das direkt weiterleitet (dank plugin das von default-permalinks auf eingestellte permalinks weiterleitet). doch es scheint bei einzelnen artikeln noch nicht zu funktionieren.
hier mein script:
PHP
<?php
// This is the index.php from the wordpress theme "umgezogen".
// It redirects any wordpress page to a wordpress new blog.
//first of all, the 301 status
header('Status: 301 Moved Permanently');
// if we are at the home page
if (is_home) {
$link = "/";
header('Location: http://web2.vs242109.vserver.de');
} elseif (is_single) {
//use the default permalinks
$permalink = the_permalink();
$link = parse_url($permalink);
header('Location: http://web2.vs242109.vserver.de/?' . $link['query']);
} else { //sorry, no chance for archives, they link to the home page!
header('Location: http://web2.vs242109.vserver.de');
}
//for clients which cannot follow the redirection
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n";
echo " \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"de\" xml:lang=\"de\">\n";
echo " <head>\n";
echo " <meta http-equiv=\"content-type\"\n";
echo " content=\"text/html; charset=utf-8\" />\n";
echo " <meta http-equiv=\"refresh\" content=\"5; url=http://killercup.de.vu" . $link . "\">\n";
echo " <title>Weiterleitung</title>\n";
echo " </head>\n";
echo " <body>\n";
echo " <p>Diese Seite wurde nach";
echo " <a href=\"http://web2.vs242109.vserver.de" . $link . "\">killercup.de.vu</a>";
echo " verschoben.</p>\n";
echo " </body>\n";
echo "</html>";
// and then do nothing more!
exit();
?>
Alles anzeigen