ROQ Posted October 28, 2023 Share Posted October 28, 2023 (edited) Hi guys, I have a module that won't load it's settings due to a url that it looks at being changed. Can I manually change all the old url strings in the database to reflect the new url? If so what query can I run to do this? Ie, search for all "oldurl" instances and replace with "newurl" Edited October 28, 2023 by ROQ 0 Quote Link to comment Share on other sites More sharing options...
leemahoney3 Posted October 29, 2023 Share Posted October 29, 2023 Which URL was changed? Was it part of the module? 0 Quote Link to comment Share on other sites More sharing options...
inthanet Posted December 28, 2023 Share Posted December 28, 2023 Hi, the Sql query have to look like this: UPDATE `mytable` SET `columnName` = REPLACE(`columnName`, 'oldurl', 'newurl') WHERE `columnName` LIKE '%oldurl%' You need to replace: mytable, columnName, oldurl, newurl as needed in your case 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.