How can we help?
If you are looking for support for our PokaTheme, this is the place!
September 16, 2019 at 7:21 pm #6202
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.
RichardSeptember 18, 2019 at 12:21 pm #6219
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.February 10, 2020 at 4:46 am #8154
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?
RichardFebruary 10, 2020 at 5:51 am #8155
There must be another folder where redirects are happening? That I can give to Hardypress to crawl.
February 11, 2020 at 6:03 pm #8177
- This reply was modified 1 year, 8 months ago by Dicky.
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.December 8, 2020 at 7:13 pm #12033
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 advanceDecember 16, 2020 at 10:51 am #12119
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: email@example.com
- You must be logged in to reply to this topic.