3
How can I insert the Keywords and even the title of my page on those "Pages that don’t exist".
For example, I made a pagination and my url changes as I change the value of url/conteúdo
, the title and others Keywords continue with the same value as the main page.
I use the header of mine index.php
for my other pages, such as conteudo.php
, sobre.php
etc...
The title of my index.php
is home, but the file title conteudo.php
would have to be another, but the title is also home.
Should I create headers for different files or is there a way to change the page title without creating another header ?
There are some methods to change the title via Javascript, but the ones I used always left the page’s original title on head which is the right place and the title of the content in
body
in the middle of Alum content. So I chose not to use it that way.
Good! I learned this technique in the internship I was doing, it is very common and useful
– Julio Henrique
@Juliohenrique97 I don’t work much with PHP, but for larger projects it may not be the best option, so your podelo can be more interesting. But for small projects this logic works well. What’s missing is an A/B SEO test to see which Google ranks best...
– hugocsl