I have a photo gallery archive that is generated using 1 single PHP file. The page code is all shared, and then I use and if/else if to generate the page based on what URL I type in. Each section has a unique H1 tag, but the title part of the page is shared. Is it possible to script this so that the H1 is pulled from the page and populated in the title field? I want this to be SEO friendly as possible. I’ve already made it so that the URL is friendly. Right now the best I could find was a script that changes the title for the viewer to use the H1 tag, but that is only ‘visual’ and doesnt actually change the title tag for search engines.
Here’s a sample page:
http://www.jeditemplearchives.com/vintagecollection/evg/025-R2-D2-The-Vintage-Collection-VC25.html
I’d love some input on solving this!