Site Wide Search And Replace?

Site Wide Search And Replace?

by Otaku Dude -
Number of replies: 4

Hiya all,

One of our Moodles uses a URL redirect. There are some 'hand coded' absolute links within many of the course pages (links to out library pages etc.) to other parts of that Moodle. We have recently beefed up our security throughout the group and now some of these links don't work when accessed from outside of the group's intranet. This is because some of these links are s http rather than https. Is there a way to do a SQL type query that could identify either the location of these links or indeed replace them with the correct url? I don't know any SQL, would this type of thing live in the datafolder or the actual Moodle DB?

Thank you,

Nige.

Average of ratings: -
In reply to Otaku Dude

Re: Site Wide Search And Replace?

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
In reply to Jon Bolton

Re: Re: Site Wide Search And Replace?

by Otaku Dude -
Hiya Jon,

Thank you for your response. If I use the script do I use just the following:

old: http://xxxxxxxx.ac.uk
new: https://xxxxxxx.ac.uk

Regards,

Nige.
In reply to Otaku Dude

Re: Re: Re: Site Wide Search And Replace?

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
Yes. But remember that you're doing a direct change to the database so be VERY careful that you've typed old and new addresses correctly.
In reply to Jon Bolton

Re: Re: Re: Re: Site Wide Search And Replace?

by Otaku Dude -
Hi Jon,

Sorry for the late reply - thanks for your help, worked a treat smile

Nige.