Url redirection

zainh332

Junior Member
Joined
Sep 21, 2015
Messages
188
Reaction score
40
Hi,

I visited a random blog website and there were many inbound links for e.g https://www.savethestudent.org/out/plus500 and when I clicked on this link it redirects me to the different website.

I know all about not passing the link juice to a different website but do anyone have any idea how did the website owner do it?
 
The URL you just posted, is not about passing the link juice. Is about redirecting to the affiliate page, without putting the affiliate link. This way, most users won't know that the site owner has any affiliate products on his website. He just used 5 lines of code to do it.

Here is an example:

PHP:
<?php
if (strpos($_SERVER['REQUEST_URI'], '/out/plus500')) {
  header('Location: your website');
  exit;
}
 
Last edited:
Back
Top