How to edit multiple HTML files in one fell swoop?

Feb 25, 2010 10:27

Hey, gang.

Here's the background. I have literally hundreds of HTML files, all named index.html, that I am about to transition from one server to another. The syntax in the files are all pretty much identical, but the catch is that they are all in a rather large directory tree. The site, for point of reference, is here, and I'm transitioning ( Read more... )

Leave a comment

Comments 4

discopanda February 25 2010, 20:24:54 UTC
Just out of curiosity, you planning to change the absolute URLs from one site to be absolute URLs for the other site, or just changing them to be relative URLs so that if you have to move them again sometime you won't need to change them all again?

Reply

dennisthetiger February 25 2010, 21:40:22 UTC
Um... yes! =^_^=

Part of the recipe does entail altering the static URL references, and most of the pointers are relative to the tree. If you read the source of the vast majority of the pages, you'll see the relative references therein. A few of the URLs are, indeed, static, especially within the "You Are Here" tables.

(That said, do you know of a trick where I can make any URL referencing a higher level directory relative, or should those be static for the purpose? For that matter, will CSS do something where I can make them relative?)

Reply

discopanda February 26 2010, 00:49:23 UTC
Like to make http://www.sitename.com/user/html/page.htm access http://www.sitename.com/user/images/picture.png ?

../images/picture.png would do that. (.. means go up a level in a relative URL.)

Reply

dennisthetiger February 26 2010, 00:51:58 UTC
Ah, OK. I never knew that about the relative links. Thanks!

Reply


Leave a comment

Up