Forum Moderators: phranque

Message Too Old, No Replies

Help webmaster!

How to replicate or clone my website without headache and timing.

         

wnshops

1:04 pm on Jan 16, 2004 (gmt 0)

10+ Year Member



You see I have a website about 1000 pages with copy rights and book marks as. checkout.com.
Now I want to copy this site and tranfer to my new site. Is there a software or any programs out there I can replace copy rights and book mark to my site quick and fast. Basicly I don't want to go in each page to change the copy right and book mark. This takes a lot of hours. Please help Webmaster. Thanks

[edited by: oilman at 9:43 pm (utc) on Jan. 21, 2004]
[edit reason] no urls please [/edit]

incywincy

1:09 pm on Jan 16, 2004 (gmt 0)

10+ Year Member



hi wnshops and welcome to WebmasterWorld.

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?

benihana

1:46 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



if i understand you correctly you need software that supports find and replace across many files at once.

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

benihana

3:49 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



in response to sticky
make sure you have a full copy of your entire site in dreamweaver.

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">&copy; 2003 widget co. </a>

in the 'replace' box put the code you want to change it to, e.g. <a href="different.html">&copy; 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

wnshops

4:28 pm on Jan 16, 2004 (gmt 0)

10+ Year Member



thanks

jimbeetle

4:53 pm on Jan 16, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Hey wnshops,

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.

lizzie

5:16 am on Jan 17, 2004 (gmt 0)

10+ Year Member


Dreamweaver will let you replace anything in multiple pages. Use the "replace" function. I forget exactly how I did it but I know I have used it for multiple pages at once.

jamesa

7:53 am on Jan 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



*nix system? This will find and replace everything in a directory that's a file (replaces 234 with EEE in this example). Can't remember if it's recursive. As always, test first and backup the originals.

find . -type f -exec perl -pi -e 's/234/EEE/g' {} \;

ncw164x

9:11 am on Jan 17, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Use dreamweaver or any other program what will find and replace text or source code

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