• Hi i’m wondering if there is any possible way to add a (number) or (word) to the end of a URL
    so basically in my website there is a hundreds of URLs that point to the same website and i’m trying to add a Referral user name to the end of those URLs for example i want https://www.exemple/bla/bla/ to be redirected to https://www.exemple/bla/bla/ref=user and doing that manually will be very time consuming so i hope that there is a way to get around this automatically with a script or some code
    thanks for helping

Viewing 3 replies - 1 through 3 (of 3 total)
  • Did you try any plugins ?

    Thread Starter marwenos

    (@marwenos)

    i tried many plugins but i can’t find one that help me to do this kind of job
    but along my research i find this java script code but i’m not sure how to use it
    https://github.com/marioestrada/scrooge-js

    Include Scrooge.js in your head:

    <script src=”js/scrooge.js”></script>
    Configure Scrooge inside a <script> tag after including it:

    <script>
    Scrooge.setAffiliateId(‘amazon’, ‘{YOUR-AFFILIATE-ID}’)
    .addSite(‘somesite’, ‘ref’, ‘{YOUR-AFFILIATE-ID}’)
    .addCjSite(‘zappos’, ‘zappos.com’, ‘{YOUR-AFFILIATE-ID}’, ‘{MERCHANT-ID}’);
    </script>

    Sorry, I can’t help you with that code, did you play with Permalink structure ? Using Permalink

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘add a word to the end of a URL’ is closed to new replies.