How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Affiliate links with a static site generator

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #6202
    Dicky
    Participant

    Hi guys,

    I’m using Hardypress, a static wordpress host. I’m trying to get the affiliate links to work on https://howtobuycrypto.co.uk/ Currently they redirect to a review page on howtobuycrypto for some reason, instead of the affiliate link they are supposed to redirect to.

    Since the links work fine when WordPress is running, but not on the static site, I’m pretty sure that the reason they’re not working is because the 301 redirect folders need to be known by Hardypress crawler which generates the static site as per – https://www.hardypress.com/guides/redirects/

    Do you know which affiliate link plugin that Pokatheme uses please? That might help in figuring out which URLs to give to hardypress to generate the redirects. Any other help you can give to get them working would be much appreciated.

    Thanks,

    Richard

    #6219
    admin
    Keymaster

    Hi Richard!

    The affiliate redirect is done from the theme internally, so if Handypress creates a static version of the site then is normal that redirects to not work.
    Let me explain how the redirects work if is going to help you with Handypress.
    We use the redirect folder (“go” the default) and the redirect slug after the redirect folder. For example go/casinoslug.
    In page initialize if the redirect folder is available and the part after the /go/ exist as an affiliate link slug then the redirect is done with the affiliate URL.

    I hope you’ll find a workaround with Handypress to replicate the redirects functionality.

    #8154
    Dicky
    Participant

    Hi,

    I’ve tried using other 301 redirect plugins with Hardypress and they work fine by following this guide – https://www.hardypress.com/guides/redirects/

    As you say by giving Hardypress the URL – ie /go/slug

    But redirects still aren’t working with pokatheme, even though they are working with other redirect plugins. There must be something different about the way pokatheme handles redirects.

    Apart from go/slug are there any other folders which handle the redirect?

    Thanks

    Richard

    #8155
    Dicky
    Participant

    There must be another folder where redirects are happening? That I can give to Hardypress to crawl.

    • This reply was modified 4 years, 1 month ago by Dicky.
    #8177
    admin
    Keymaster

    Hi!

    If your site version is static and you created 301 redirects for these URLs I don’t know why these redirects don’t work.
    From what I understand your site is completely static and PokaTheme is used only for the generation of the HTML files.
    So I don’t think that has to do something with how you structured your redirects.

    #12033
    Dicky
    Participant

    I still haven’t solved this but it’s something to do with the trailing slashes on affiliate redirects:

    /go/slug redirects correctly
    /go/slug/ redirects incorrectly to /review/slug/

    Why is the trailing slash redirecting to a *review* page? So random, can you confirm this please?

    This trailing slash issue is causing the Hardypress static site generator to misunderstand the redirect and to also redirect to a review page.

    Thanks in advance

    #12119
    admin
    Keymaster

    Hi Richard,

    Sorry for the late reply.
    We use the slashes in order to find the folder and affiliate key of the link.
    Because we can’t change the affiliate URL structure to the theme if you want we can create a version in a child theme with affiliate links with a trailing slash for your case.
    Please contact us at: support@pokatheme.com

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.