GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Tech Program Dead - How to Best Re-Direct (https://gfy.com/showthread.php?t=1204480)

Jigster715 06-27-2016 06:29 PM

Program Dead - How to Best Re-Direct
 
Hundreds of links on galleries we made.
Looking for advice on how to best re-direct galleries and wp blog posts with as little SE damage as possible.

Htaccess?
301's?

Thank you in advance.

Sucks cause they convert like mad but have decided to kick affiliates to the curb.

Miguel T 06-27-2016 08:49 PM

SQL Mass-Replace is one option...

Jigster715 06-28-2016 01:19 AM

Quote:

Originally Posted by Zuzana Miguel (Post 20992135)
SQL Mass-Replace is one option...

Hi, Miguel. Thanks for that. I think we will try that for the wp blogs and 301's for the html gals. I think. lol.

Paul&John 06-28-2016 01:21 AM

I'm pretty sure you can mass search/replace on server also via bash, however an alternative solution is to pull every html gallery locally, then there replace stuff via notepad++ or similar. Or just replace the index.html in the gallery folders with an index.php which redirects the traffic to the root or somewhere else.. or do that via .htaccess on the root

Konda 06-28-2016 02:27 AM

If all the galleries are html or php files you can ask your host to do a search and replace with a simple batch script using regular expression.
Like if affiliate links in all the galleries look for example something like: secure.xxxxx.com/track/XXXXX/
they can easily do a search and replace to change all the linkcodes to http://someotherlink.com/

Freedom6995 06-28-2016 03:55 AM

Sponsor name?

Barry-xlovecam 06-28-2016 04:56 AM

grep -rni '[pattern]'
tree or
ls -ltR [*.php and/or *.html]
then sed

if you have the links hardcoded in HTML or scripts

If you don't have SSH :1orglaugh
Good luck to you ....

Jigster715 07-01-2016 07:32 AM

Thank you for the kind replies. We are asking our host about doing the batch changes. Luckily its a dedicated box so I think SSH is in place as well.

If anyone has any other suggestions on mass changing links they are always welcome.
Thanks.

rogueteens 07-01-2016 08:28 AM

Quote:

Originally Posted by Freedom6995 (Post 20992696)
Sponsor name?

seconded


All times are GMT -7. The time now is 08:18 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123