Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia a todos
Eu fiz um redirect301 no meu site rodando localhost
$descricao1 = substr($redir4->obs,0,50);
$novaUrlGerar42 = geraUrl("{$tipo}-{$cidade}-{$bairro}-{$descricao1}");
$novaUrl42 = "{$host2}/{$dir1}/{$novaUrlGerar42}_{$exp[1]}.html";
$novaUrl42 = str_replace ("&cidade", "",$novaUrl42);
mysql_close($db);
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: $novaUrl42");
Ele gera a novaUrl legal, porem não roda ...exibe a seguinte mensagem
Warning: Cannot modify header information - headers already sent by (output started at C:\Webserver\AppServ\www\site\exibir.detalhes.imoveis.php:8) in C:\Webserver\AppServ\www\site\redirect301.php on line 31
Warning: Cannot modify header information - headers already sent by (output started at C:\Webserver\AppServ\www\site\exibir.detalhes.imoveis.php:8) in C:\Webserver\AppServ\www\site\redirect301.php on line 32
No httpd.conf do apache esta assim
LoadModule rewrite_module modules/mod_rewrite.so
Os erros são nessas linhas
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: $novaUrl42");
O que pode ser isso ?
[]'s
Carlos
Carregando comentários...