4 replies
I need to change an affiliate code on a number of site pages. Is there a simple method to just change the initial one and all will be changed within the page or am I stuck with changing almost 100 individually?
#affiliate #link
  • Profile picture of the author Success2020
    Have you try TinyURL.com - shorten that long URL into a tiny URL... You cann use it to hide your affiliate URLs....
    {{ DiscussionBoard.errors[712844].message }}
    • Profile picture of the author glchandler
      No...what I am looking at is I just acquired a site that has multiple companies affiliates links....from clickbank to CJ to a few others. Multiple pages and multiple ads/links...I was hoping that I could change a "master" and have all the affiliate numbers changed in like ads without doing each individually.

      I just finished one section of the site and had to change the same affiliate code on 84 different areas!!!

      But I have just enough knowledge to get myself in trouble so I will do them individually and hope I do not pay previous owner too many commissions!!
      Signature

      There is never a BAD time to help those living with lousy kidneys!
      http://funds.gofundme.com/1oh40


      {{ DiscussionBoard.errors[713601].message }}
      • Profile picture of the author mojojuju
        Originally Posted by glchandler View Post

        No...what I am looking at is I just acquired a site that has multiple companies affiliates links....from clickbank to CJ to a few others. Multiple pages and multiple ads/links...I was hoping that I could change a "master" and have all the affiliate numbers changed in like ads without doing each individually.

        I just finished one section of the site and had to change the same affiliate code on 84 different areas!!!

        But I have just enough knowledge to get myself in trouble so I will do them individually and hope I do not pay previous owner too many commissions!!
        If this is a static site, then:

        a) use your choice of recursive find and replace command from the shell (e.g sed)

        or

        b) Just download the whole site to your computer and use an appropriate program (most any decent text editor) to do a recursive find and replace, then upload everything back to the server. Tada!

        If you've got a dynamic site such as a Wordpress site, try doing a find and replace on your database. For MySQL, you could do something like:

        Code:
        update [name_of_table] set [name_of_field] = replace([name_of_field],'[old_affiliate_id]','[new_affiliate_id]');
        Signature

        :)

        {{ DiscussionBoard.errors[713658].message }}

Trending Topics