I use numbers as the file name now. And I learned from DP here that I should change the file name to include keywords for a better SEO. As there are lots of content articles, how could I change the file name bulkly, say from 20061226100.html to how-to-learn-xml.html? Any tool I could use for this?
You've probably already found a solution, but for others who may stumble onto this post, the issue here is that if you're going to do it in bulk then you're going to need pre-defined data to pull from, and all your files are already going to need to conform to the data structure. For example, if you have 1,000 HTML files, and you want to change the name to something SEO friendly, where do you get the SEO friendly text from? Are you going to type it in? Because if you're going to do that, then you might as well just start changing the filenames manually. However, if each HTML file contains a title, and you want to use that title as the filename, then you've got something to work with, because you can write a script that will grab the file, find the title, create a copy of the file, and give it a filename based on that title and save it in a different location. However, each file is going to need to conform to the same format, because you're going to have to use some sort of criteria to identify the title in each file (i.e. it's the only text in h1 tags or something like that). If a file doesn't conform to whatever rule you set up, then the script won't be able to identify the title and rename the file. As far as I know, there's no tool out there that is specifically designed to do this, and chances are it doesn't exist because your need isn't common enough, and even if someone has built something like this it would probably need to be customized to fit your exact needs. That said, it probably wouldn't be hard to find a programmer who could create this kind of script in 5-10 hours. If you have 1,000 or more file it just might be worth it. If you've got a few hundred you might want to just do it by hand.