Thread: .htaccess
View Single Post
Old 07-01-2002, 05:04 PM  
swedguy
Confirmed User
 
Industry Role:
Join Date: Jan 2002
Posts: 7,981
Log on to your server with telnet or ssh.

find /home/bubba/domain.com -name '*.html' -exec perl -pi -e 's/http:\/\/www.yahoo.com/http:\/\/www.google.com/g' {} \;

Change /home/bubba/domain.com to the domain dir you want to mess around in.

If it's a linkingcode you're about to change, you need to escape (put an \ in front of it) certain characters: ? & /

Create a test dir with couple of test files in it to test on first.


btw, I do NOT give ANY guarantees
swedguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote