Dynamic Pages Name with Single PHP File

This is most likely very basic but I was hoping someone could help me so I can make my website a little more SEO friendly.

I have a single .php file my website… (index2.php)
I want it so when it goes to a content page such as the About Us page (index2.php?id=aboutus) It comes up with About Us as the title not the same title as the index2.php file.

Thanks in advance for your assistance.

look into using mod rewrite or setting up a switch to change the title when the page changes.

you can put the code on the same index2.php with

if () and else if() and else

http://php.net/manual/en/control-structures.elseif.php

or you can use case

http://php.net/manual/en/internals2.opcodes.case.php

Sponsor our Newsletter | Privacy Policy | Terms of Service