Herzlich willkommen im Archiv vom ABAKUS Online Marketing Forum
Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.
Frage: Sinnvoll oder total daneben?Damit diese URLs per 301 umgeleitet werden, habe ich die application_top.php erweitert:
Code:
// new p URLS
if (isset ($_GET['info'])) {
$site = explode('_', $_GET['info']);
$pID = $site[0];
$actual_products_id = (int) str_replace('p', '', $pID);
$product = new product($actual_products_id);
$is_product=true;
}
// also check for old 3.0.3 URLS
elseif (isset($_GET['products_id'])) {
$actual_products_id = (int) $_GET['products_id'];
$product = new product($actual_products_id);
$is_product=true;
}
// URL-Suche ueber Artikelnummer - Vollstrom 1.05.2007
elseif (isset($_GET['model'])) {
$site = explode('_', $_GET['model']);
$pmodel = $site[0];
$pmodel = str_replace('m', '', $pmodel);
$getid_query = xtc_db_query("select products_id from ".TABLE_PRODUCTS." where products_model='".$pmodel."'");
$getid = xtc_db_fetch_array($getid_query);
$actual_products_id = $getid['products_id'];
$product = new product($actual_products_id);
$is_product=true;
}
if( $is_product && strstr( $_SERVER['REQUEST_URI'], "product_info.php" )) {
$url = shopstat_getSEO( 'product_info.php', 'products_id='.$actual_products_id,'','', true, 'user');
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".$url);
exit();
}