Sha256: b45b23c5348a03631b7a1a7783165de636c88c61fb8a3fd56d919ecc638d963f
Contents?: true
Size: 776 Bytes
Versions: 18
Compression:
Stored size: 776 Bytes
Contents
<?php $dst = ( isset( $_GET[ "to" ] ) ? $_GET[ "to" ] : ( isset( $_POST[ "to" ] ) ? $_POST[ "to" ] : false ) ); if ( $dst ) { // ********************************************************************** // The crucial line: Issue a custom header with the location to which the // redirect should happen. For simplicity, we simply redirect to whatever // location was specified in the request's "to" parameter, but real-world // scripts can compute the destination based on server-side state. // // NB: This is not a HTTP redirect. As far as HTTP is concerned, this is // a normal request/response cycle with a status code of 200. // ********************************************************************** header( "X-Redirect: " . $dst ); } ?>
Version data entries
18 entries across 18 versions & 1 rubygems