How to mass replace old dead links with new links in a Wordpress blog?

Status
Not open for further replies.

akibaba

Active Member
323
2010
111
0
Most of the links (20k+, wupload, filesonic, uploadstation and fileserve) in my Wordpress blog is dead.

And I get a list of live links for them in a text file. How do I mass replace those dead links in my post with those live links (In one go)?
 
19 comments
it will work , but u have to manually replace all links :|

Impossible, there is 20k+ links that is dead, so I seek for some code that can search for unique file name and replace the old links with new links automatically.

I am willing to pay for it if someone can provide me with such a code.
 
I think this will not work for such as:

replace
http://www.filesonic.com/file/1246786931/file.part1.rar

with
http://www.filesonic.com/file/1143784991/file.part1.rar


Where the filename file.part1.rar in both link is same.


If I were you, I'll try

search : 1246786931/file.part1.rar
replace : 1143784991/file.part1.rar


It should work.

but 20k+ link replace is pain in the ass :facepalm:

You need some custom php that do it automatic. Unfortunately I think that there are no free code to make this job done.

:)
 
but 20k+ link replace is pain in the ass :facepalm:

You need some custom php that do it automatic. Unfortunately I think that there are no free code to make this job done.

:)

Yes a simple custom php code that can connect to mysql server and issue some MYSQL commands to search and replace is what I need now.
 
After going through the topic I gathered enough info to ensure you it's fairly simple to code this in PHP.

As long as the 'new' filename contains the 'old' filename in some way.
 
After going through the topic I gathered enough info to ensure you it's fairly simple to code this in PHP.

As long as the 'new' filename contains the 'old' filename in some way.

'new' filename is exactly the same with 'old' filename :)
 
Robin H have coded a custom php code for me in this project. Thanks Robin H.

Anyone have programming need or need a solution for this can contact him. He is a professional programmer! :)
 
Status
Not open for further replies.
Back
Top