masterwoo
masterwoo

Reputation: 1

Need php script just like used by mysmartprice dot com on Go To Store button (URL Cloaking)

Need code of php script used for example by mysmartprice dot com on their "Go To Store" button for URL cloaking.

Upvotes: -6

Views: 635

Answers (1)

Henrik Karlsson
Henrik Karlsson

Reputation: 5733

I'm not 100% sure if I got your question right, but this is my guess of you mean:

Use PHP's header method like this:

<?php
    if(!isset($_GET["p"]))
        exit("No parameter \"p\"");

    $p = $_GET["p"];
    header("LOCATION: $p");
?>

Save the file as redir.php and then use it as http://mysite.com/redir.php?p=http://google.com/.

Upvotes: 0

Related Questions