The first version of my portfolio site had a bunch of static html files, all for sake of SEO. I hated to copy same menus over in multiple html files and any change was a major pita. With only a couple galleries I didn’t want to make them all php pages pulling common header and footer include files. The galleries grew from 4 to 8 and I just could not bear this archaic design anymore. I found the solution through apache’s mod_rewrite. So I can still point to a static html like /portfolio-headshots.html but it will actually call /navigation.php?page=portfolio&gallery=headshots. This php can comfortably pull the header and footer template files, a menu template file and can do necessary substitutions to make the links contextual. The actual image links are now in a file like portfolio-headshots-template.html having just a div block containing the list of images to display. Voila, problem solved.
Major internal makeover of joyduttaphoto.com
- No comments yet.
Recent Comments