Datenbankserver nicht erreichbar" . mysql_error()); mysql_select_db($Database, $DatabasePointer) or die ( "

Datenbank nicht vorhanden

" . mysql_error());//RS // RS NEU $DatabaseHost2 = "127.0.0.1:3307"; $DatabaseUser2 = "spojsddb29"; $DatabasePassword2 = "h5y62b9z"; $Database2 = "usrdb_spojsddb29"; $DatabasePointer2 = @mysql_connect($DatabaseHost2, $DatabaseUser2, $DatabasePassword2) or die ( "

Datenbankserver nicht erreichbar

" . mysql_error()); mysql_select_db($Database2, $DatabasePointer2) or die ( "

Datenbank nicht vorhanden

" . mysql_error()); /**/ $found = true; $url_str = mysql_real_escape_string($_GET['rule']); $result = mysql_query(" SELECT A.OXARTNUM, B.OXLANG FROM oxarticles A, oxseo B WHERE A.OXID = B.OXOBJECTID AND B.OXSEOURL LIKE '%".$url_str."%' LIMIT 1",$DatabasePointer) OR die (mysql_error()); if ($row = mysql_fetch_object($result)){ $sql = "SELECT A.kArtikel, B.cSeo FROM tartikel A, tseo B WHERE B.kKey = A.kArtikel AND B.kSprache = ".($row->OXLANG+1)." AND A.cArtNr LIKE '".$row->OXARTNUM."' LIMIT 1"; $result2 = mysql_query($sql,$DatabasePointer2 ) OR die (mysql_error()); if ($row2 = mysql_fetch_object($result2)){ $seo_url_new = $neue_domain."".$row2->cSeo; } else { $seo_url_new = $neue_domain; $found = false; } } else { $seo_url_new = $neue_domain; $found = false; } /* Statistik require_once "piwik_tr.php"; $t = new PiwikTracker('14','http://blogstat.sport-net-gmbh.de'); $t->doTrackPageView($url_str); */ /* require_once "piwik_tr.php"; PiwikTracker::$URL = 'http://pw.sportkanzler.de'; $piwikTracker = new PiwikTracker( $idSite = 9 ); $piwikTracker->setTokenAuth("927f618399aef57e3de69351ba9ff278"); $piwikTracker->setIp($_SERVER['REMOTE_ADDR']); $piwikTracker->doTrackPageView($url_str); */ if ($found) { header("HTTP/1.1 301 Moved Permanently"); header("Location:".$seo_url_new.$kampagne); exit; } else { $search = [".html","-",".","Gr","size"]; $replace = ["" ," "," "]; $such_str = str_ireplace($search,$replace,substr($url_str,strripos($url_str,"/"))); $such_str = preg_replace('/[^a-zA-Z ]/','',$such_str); $such_str = urlencode($such_str); $seo_uml = $altern_such . $such_str; //header('HTTP/1.1 404 Not Found'); //header("Refresh:0; url=$seo_uml"); header("HTTP/1.1 301 Moved Permanently"); header("Location:".$seo_uml); //echo "Die von dir angeklickte Seite \"".$url_str."\" gibt es leider nicht mehr: >>> hier geht es zur zurück zum Shop: der-rollenshop.de



". $seo_uml; } ?>