Forum Moderators: phranque
[edited by: oilman at 9:43 pm (utc) on Jan. 21, 2004]
[edit reason] no urls please [/edit]
it would have been better if this had been considered before the site was built. server side includes would have made the change very simple.
other than using ssi i guess that if you have access to linux you could write a script that recurses the whole site and does global replaces.
do you have shell scripting skills?
dreamweaver does, but is v pricey if thats all you need it for. im pretty sure ive seen a free text editor that will do it, but i cannot remeber the name. anyone?
you could maybe try a search for "multiple file find and replace" and see what comes up.
ben
press ctrl+f to bring up find and replace dialog.
set 'find in' to 'entire current local site' and 'search' to 'source code'.
in the top box - 'find' put the code snippet that you need to change e.g. <a href="copyright.html">© 2003 widget co. </a>
in the 'replace' box put the code you want to change it to, e.g. <a href="different.html">© 2004 other co. </a>, then press 'replace all'.
i would recommend taking a full copy of the local site and storing it else where on your computer before you do this (just in case)
when its finished updating change the site ftp settings and upload to the new host.
ben
If this is the same site from this thread [webmasterworld.com...] , didn't I just spend 15 minutes writing very detailed FP instructions for you via sticky -- at your request -- just as it seems benihana did for dreamweaver above.
As you can see, folks here at WW don't mind helping at all, but seeing basically the same question asked and answered multiple times in different threads can can be discouraging for folks trying to help.
In the future, please try to ask concise questions and keep the discussion all in one related thread. It helps folks to know what you tried before and others coming along later for the same type of advice.
I wanted to change the copyright year at the start of the this new year and I asked is it possible to do this via a command on a unix server, yes it is possible but you have more of a chance of something going wrong if you are not up to speed with unix servers. By the time you have backed everthing up before you start your changes on the server you could have completed all the changes on your hard drive.
(You don't get a second chance on a unix box)
With dreamweaver I have used it to change 1000's of pages in minutes either with lots or a little bit of text
As always though test what you are doing on a single page before you change the entire site
ncw164x