← Desenvolvimento

Páginas com Includes

Lida 5888 vezes

Offline

mestreamateur 
Membro
Mensagens 671 Gostos 0
Feedback +1

Troféus totais: 31
Trófeus: (Ver todos)
Level 6 Avatar Tenth year Anniversary Nineth year Anniversary Windows User Super Combination Combination Topic Starter Poll Voter Poll Starter

Ninguém para ajudar?   :-?

O teu site não está a ser indexado, mas sinceramente não acredito que seja por ter os titulos iguais.

Se tiveres por exemplo na Base de Dados os vários menus do site, metes por exemplo

Pormenor Vitural - Titulo do menu (este vais buscar à base de dados)

e já fica diferente.


Tens o sitemap no google webmaster? há qualquer coisa que não bate certo. Eu tenho o site à muito menos tempo que tu e tenho 400 e tal paginas indexadas...
Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Tens o sitemap no google webmaster? há qualquer coisa que não bate certo. Eu tenho o site à muito menos tempo que tu e tenho 400 e tal paginas indexadas...
Tenho sitemap, sim.

O teu site deve estar em Wordpress, o meu é feito de raiz :-#
Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Ninguém para ajudar?
Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Com uma pesquisa rápida encontrei: http://www.scrollux.com.br/2010/04/titulo-dinamico-com-php.html

Já implantei e configurei, mas não sei onde se deve meter o último código apresentado no post. Quem puder ajudar...

Obrigado
Offline

Júnio Branco 
Membro
Mensagens 563 Gostos 0
Feedback +2

Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Código: [Seleccione]
Se tens essa estrutura em todas as paginas:
include ('head.php')
?>
<div>blabla</div>
<?
include ('footer.php')
?>

Podes tentar o seguinte:
Código: [Seleccione]
<?
$tituloPagina= "Titulo da pagina";
include ('head.php')
?>
<div>blabla</div>
<?
include ('footer.php')
?>

E dentro do ficheiro head.php tens entre as tags <title> o seguinte:
Código: [Seleccione]
<title><? echo "$tituloPagina" ?> </title>
Offline

João Godinho 
Membro
Mensagens 1755 Gostos 2
Troféus totais: 27
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Código: [Seleccione]
Se tens essa estrutura em todas as paginas:
include ('head.php')
?>
<div>blabla</div>
<?
include ('footer.php')
?>

Podes tentar o seguinte:
Código: [Seleccione]
<?
$tituloPagina= "Titulo da pagina";
include ('head.php')
?>
<div>blabla</div>
<?
include ('footer.php')
?>

E dentro do ficheiro head.php tens entre as tags <title> o seguinte:
Código: [Seleccione]
<title><? echo "$tituloPagina" ?> </title>
Muito boa solução, talvez a use, mas já agora como se resolve a solução que encontrei?