Hello,
Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.
The Affiliate Link Prefix option will refrain Rank Math from detecting them as internal links on your site since you’re using cloaked affiliates.
However, could you please confirm if you’re using a page builder on your site? If so, please share it so we can check as well. Also, are you using shortcode to add the content, especially the affiliate links?
Looking forward to helping you.
Thank you.
Thanks for getting back to me.
Ok so it prevents it from being counted as internal links but thatdoesn’t make them count automatically as external?
Ivam not using a pagebuilder and using links to add these links no shortcodes
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.

It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.