2014-06-03, 05:09 PM
How can I show a message on homepage if the user has landed on homepage from 301 redirect????
P.S.
I have found this solution could you tell me if this will could somehow compromise my security?
I will use this for 301 redirect!
And use this PHP code to show message after redirect! Plugin hooked to index_start
What do you think is there a way to make it better????
P.S.
I have found this solution could you tell me if this will could somehow compromise my security?
I will use this for 301 redirect!
header("HTTP/1.1 301 Moved Permanently");
header("Location: {$mybb->settings['bburl']}?redirect=true");
exit();
And use this PHP code to show message after redirect! Plugin hooked to index_start
if(isset($_GET['redirect'])){
if($_GET['redirect'] == 'true'){
echo"<div class='redirected'>You were redirected!</div>";
}
}
What do you think is there a way to make it better????