PDA

View Full Version : I need to rename all of my links... any short way?


readjono
06-30-2007, 12:18 PM
I've just moved my forum on to a new server, along with a series of sound files, which I regularly posts links to.

Now the hosts have been kind enough to redirect people to the new location, but they said I will need to update them sometime soon.

Is there any script that will rename all of the URLs in forum posts that point to this address?

i.e I want to rename http://subdomain.domain.co.uk/audio/music.mp3 to http://www.newdomain.co.uk/sound/music.mp3

Dismounted
07-01-2007, 07:11 AM
I don't think there's a short way. But correct me if I'm wrong.

readjono
07-01-2007, 04:09 PM
That's a pain. Didn't know if there were any queries that would do it.

Ba$im
07-01-2007, 07:50 PM
hummmmmm
i think u should try do this with htaccess
or if u mean link in new forum may be if use varible from forum admin it help

Dismounted
07-02-2007, 04:58 AM
i think u should try do this with htaccess
His host has already done that, he want to change the links in the posts.

snakes1100
07-02-2007, 05:04 AM
Hmmm, a easy way as i do this sometimes to replace code, i use Edit+, you could take a backup of your forum via a sql file and edit it in Edit+, use the replace function Edit+ has to search out the link and replace the part you want edited.

Ie:
Find what box = http://subdomain.domain.co.uk/audio
Replace with box = http://www.newdomain.co.uk/sound

As it simply replaces the text every time you click find next, it shoudlnt take you that long to do, then simply import the backup sql file.