redirect not working

Hi,
how to redirect to another page …
[php]if ($_GET[‘autor’] && $_GET[‘ulr’]){
$niepl = intval($_GET[‘autor’]);
$ulr = urldecode($_GET[‘ulr’]);
header(‘Location: http://www.adrtes.pl/mp3/’.$ulr.’/’.$niepl.’.html’);
}

while ($row = mysqli_fetch_array($sql)) {
$niepl = $row[‘autor’];
$we1 = array(‘ą’,‘ć’,‘ę’,‘ł’,‘ń’,‘ó’,‘ś’,‘ź’,‘ż’,‘Ą’,‘Ć’,‘Ę’,‘Ł’,‘Ń’,‘Ó’,‘Ś’,‘Ź’,‘Ż’,’ ‘);
$wy1 = array(‘a’,‘c’,‘e’,‘l’,‘n’,‘o’,‘s’,‘z’,‘z’,‘A’,‘C’,‘E’,‘L’,‘N’,‘O’,‘S’,‘Z’,‘Z’,’-’);
$niepl= str_replace($we1, $wy1, $niepl);

echo ‘<a href="’.$row[‘ulr’].’/’.$niepl.’" title=’.$row[‘tytul’].’>’.$row[‘tytul’].’’;[/php]

My link looks like this:

http://www.adress.pl/bo/Name-That/Autore-Yourself

and is redirected to the address

http://www.adrtes.pl/mp3/Name-That/Autore-Yourself.html

Changes only: Name-That and Autore-Yourself

close

Sponsor our Newsletter | Privacy Policy | Terms of Service