When you get to the point that you have so many similar pages then you know it is about time you moved to using a single php template file into which the content is loaded from a database. This means you only ever have to edit one page and the content is very easy to create and maintain as it is all built within a MySQL database; this is how all CMSs do it as it is the most efficient and the most expandable. I think this is something you should certainly consider.
Thanks for suggestion,
Yes I want to use Mysql database, but currently I don't want to do it because,
1)As Descalzo said,
From your description of the site as 'static', I would not go the MySQL route. Just one more thing that can go wrong. Look at the Free Hosting forum when the MySQL starts acting up. Sites are unusable.
It will make my site dependent on mysql server, so if it goes down then my site goes with it, it also mean I neede to write additional conditional statement to do the damage control.
2)Since all information is stored in over 1000 files, how can I store all of them in database and how I can retrieve them?
Depending on how regular the pages were, I would run them through a Perl script to do the transformation.
Did you edit all the internal links so they point to the .php version instead of the .html version?
Thanks, Yes I have changed all internal links to php, it was easy just find and replace function of my editor did that.I guess you are suggesting me to pass all requests by client browsers through a single script?
As Tim Berners-Lee wrote,
cool URIs don't change (later updated for the
semantic web).
Thanks, I am going to implement my site in zend framework, Because in zend framework (MVC) every request by client goes through only index.php on webroot and it has inbuilt support for cool URLs and CMS can be built easily over it as well.
The main problem is File created from July 2009 to Till now, how to integrate them.Because I don't have too much time to invest and I can't write too much views, controller and actions.My quick and dirty plan is that let's provide support for old content in this way (without any cms), and new content should be processed through Zend framework.I should do it in this dirty way or I shuld invest time.My site is a download site.So content goes old with time.