samedi 9 janvier 2016

Passing a Value from a URL Parameter to Header:Location redirect

Vote count: 0

Here is what I want to achieve:

1.) opening http://ift.tt/1mNxKQC

2.) should 301 redirect to: http://www.example.com

(TESTING) So far, in out.php this works:

<?php
    header("Location: http://www.example.com");
?>

So I went ahead and did this:

<?php
    header("Location: " . $_GET['url']);
?>

It won't work, I went through all stackoverflow.com articles that i could find but none worked.

asked 1 min ago

This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.



Passing a Value from a URL Parameter to Header:Location redirect

Aucun commentaire:

Enregistrer un commentaire