prepare($sql); $stmt->execute(); $aantal = $stmt->rowCount(); if($aantal > 1) { $orgmulti = str_replace(" ","-", $org); header('Status: 301 Moved Permanently'); header('Location: https://'.$website.'/Artists/alle-lookalikes-en-imitators-van.php?act='.$orgmulti.''); exit(0); } else { while($row = $stmt->fetch()) { $id = $row['id']; $org = str_replace(" ","-", $org); $orgsingle = strtolower($org); header('Status: 301 Moved Permanently'); header('Location: https://'.$website.'/Lookalike-imitator/?'.$id.'/'.$org.'-lookalike.html'); exit(0); } } ?>