0

I want to redirect outbound affiliate links and on this site there is no option for PHP or htaccess.

So far I've always done this using

<?php
header( 'Location:' ) ;
?>

but like I said this is not an option anymore as this site does not support php or .htaccess anymore.

Is there an alternative solution for this, using HTML ?

Sumurai8
  • 20,333
  • 11
  • 66
  • 100
user3187469
  • 1,461
  • 7
  • 23
  • 31
  • So when someone clicks into a page it will redirect to an external page after a few seconds or straight away? – Howli Mar 21 '14 at 16:08
  • possible duplicate of [How to redirect from an HTML page?](http://stackoverflow.com/questions/5411538/how-to-redirect-from-an-html-page) – Sumurai8 Mar 21 '14 at 16:16
  • I have a page where there are product reviews and affiliate links with each reviews. When user with click those links it will take him external page using our affiliate link. And there are lots of different links on same page, not just one. – user3187469 Mar 21 '14 at 16:19

2 Answers2

1

Use this code before </head>

<meta http-equiv="refresh" content="0; url=http://youraffiliatelink.com/" />
0

use this hrml code in header of your page :

<meta http-equiv="refresh" content="0; url=http://example.com/" />

or use JavaScript like this :

    <script type="text/javascript">
        window.location.href = "http://example.com"
    </script>
Mark Richards
  • 434
  • 1
  • 8
  • 24