Welcome to WebmasterWorld Guest from 23.20.48.226

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to change the content of 5000 .html pages?

h e e e e l p :-(((((

     
6:03 am on Jul 23, 2006 (gmt 0)

New User

10+ Year Member

joined:July 20, 2006
posts:2
votes: 0


my site have 5000 URLs (at least).
all pages end with *****.html , they are not php or shtml.
now i have problem because of my 5000 pages.

i run ads in my site, and ad codes are in every single page, now i switching to another ads network, so i need to remove all old codes and insert the new codes in every single page.

so its a hard job to insert the codes in every page, but this is not the problem now, my problem is what i can do now can help me and make my job much easier in the feature if i want to change the codes again.

i will appreciate any help :-)

6:35 am on July 23, 2006 (gmt 0)

New User

10+ Year Member

joined:July 22, 2006
posts:24
votes: 0


If the old code are all the same in different pages.

Just use a tool to find and replace
for all your files.
Since there are 5000 html pages,
I think you may need to replace them use command console.
As far as I know, in Linux, you can use some command with regular expression to do the work pretty quickly.
I suppose it will apply to DOS as well.

Do a search on "regular expression find replace"

That is all I know.
Good luck.

7:46 pm on July 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 28, 2004
posts:7999
votes: 0


If you search this board for "search and replace" you will find lots of solutions. Mine would be to use Homesite's search and replace method and re-upload the files, OR write a small perl script to do the work for me directly on the site.
10:59 pm on July 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 26, 2004
posts:1497
votes: 0


While you're doing find+replaces it might be worth seeing if there are any places you could change to included sections - that'd make things a lot simpler in the future if you have to do this again.
11:04 pm on July 23, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Oct 9, 2004
posts:1435
votes: 0


Try WildEdit if you are going to do it on a local PC and upload to your server. It's very handy for such instances (although I've moved away from such techniques).
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members