![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
VIP
Industry Role:
Join Date: Jul 2013
Posts: 22,112
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Promoting Debate on GFY
Industry Role:
Join Date: Apr 2007
Posts: 27,173
|
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Feb 2005
Posts: 17,229
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
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:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Promoting Debate on GFY
Industry Role:
Join Date: Apr 2007
Posts: 27,173
|
![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Promoting Debate on GFY
Industry Role:
Join Date: Apr 2007
Posts: 27,173
|
Quote:
![]()
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
So Fucking Banned
Industry Role:
Join Date: Apr 2003
Location: online
Posts: 8,766
|
yeah, who would expect that... the guy that spams board with some conspiracy shit stories would have problem with comprehending text...
![]() ![]() ![]() ![]() anyway, I found solution using php delimiters and search regex plugin. php delimiter to url link is Code:
/<a [^>]+>/i |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Promoting Debate on GFY
Industry Role:
Join Date: Apr 2007
Posts: 27,173
|
Quote:
![]() Glad you got a solution ![]()
__________________
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
VIP
Industry Role:
Join Date: Jul 2013
Posts: 22,112
|
Quote:
I am bit late... it seems that you have found a solution. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |