I want to do what I assume is a relatively simple task, but I don’t know how to do it, because I am not smart enough. Here’s the deal:
I have copied the files from my old site, homepage.mac.com/wysz/, to my new domain, thewysz.com, in the /hotw/ subdirectory. HotW is Home of the Wysz, by the way, not Hot W.
I don’t update the files on the .Mac site, so I want anyone who visits one of those pages to know about TheWysz.com. I took care of this a while ago by just adding a link to my new homepage at the bottom of every page. It took about 30 seconds with TextWrangler. This isn’t the greatest user experience, because if the visitor wants to view the newer version of the page he or she landed on, he or she would have to know to replace homepage.mac.com/wysz/[path/filename] with thewysz.com/hotw/[path/filename].
What I’d really like is to get the file path of the page somehow written to the file itself. That way I could add a link directly to the new URL or even do a meta refresh. Unfortunately, due to technical limitations of .Mac, I’m pretty sure server-side redirection is not possible. I think what I’d want the action to be is a find/replace of <head> for the refresh, or </body> if I wanted to just add a link at the bottom.
So how can I do it? I have over 2,000 files to process, so it would have to be completely automated and not require me to open the files individually. I’m on a Mac, and not afraid to type into a Unix terminal window.
Thank you, smart people. And if you, my dear readers, cannot offer a solution, I will be very disappointed in you.