![]() |
help with wordpress - mass change of links
I have few hundreds posts in wordpress site. Each post has some link url which is like
Code:
http://aa.com/hereisvariable Code:
http://newurl.com |
The next time you can use an affiliate link cloaking plugin so you do not need to change the link in all posts manually.
Here what you can do: 1. Download your wordpress database and saved it as a backup. 2. Copy the backup to another location and opened it in a text editor (text wrangler in my case). 3. Search for the old link, then used the 'replace all' command to replace it with the new one. It found several thousand instances of the old link and replaced them all. 4. In PHPmyAdmin, drop all the tables then import the modified database file. All of the links will be fixed. |
|
|
no idea how to use it correctly, as the urls that I need to change are on the same domain, but later they change, like
Code:
http://steadydomain.com/butnewurleverytime Quote:
|
|
so how to mark that I need to remove all links from domain xxx.com while these links will be like xxx.com/1link, xxx.com/2link , xxx.com/whateverlink and so on ?
Quote:
|
Quote:
|
yeah, who would expect that... the guy that spams board with some conspiracy shit stories would have problem with comprehending text...:winkwink::winkwink::winkwink::winkwink:
anyway, I found solution using php delimiters and search regex plugin. php delimiter to url link is Code:
/<a [^>]+>/i Quote:
|
Quote:
Glad you got a solution :thumbsup |
Quote:
I am bit late... it seems that you have found a solution. |
All times are GMT -7. The time now is 07:15 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc