Hello, im trying to make the CMS system im using more SEO friendly by giving
each page it's own title. Right now, the system assigns all pages the same
general title. I would like to use PHP to discertain which page is being viewed
and in turn, which title should be used.
I have put in the titl
You can split $_SERVER['REQUEST_URI'] on the /'s to get the directories, eg:
http://site.com/info/your_pet/dogs/page.html would result in
/dir/anotherdir/page.php
So, (untested code):
Should echo something like:
'Name of My Site / Info / Your Pets / Dogs'
All you need to to do is echo $titl
Hello.
I have many pages, and was thinking of a way to generate dynamic page
titles, very similar to a breadcrumb where it uses the directory structure
to make the page title.
Anyone have something like this, and is willing to give a hand?
warm regards,
Sebastian - [BBR] Gaming Clan
http://www.b
3 matches
Mail list logo