![]() |
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. |
SQL Mass-Replace is one option...
|
Quote:
|
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
|
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/ |
Sponsor name?
|
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 .... |
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. |
Quote:
|
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