问题描述:

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 ?

网友答案:

Use this code before </head>

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

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>
相关阅读:
Top