How to make a HTTP redirect in PHP

To make a HTTP redirect in PHP you can use the following snippet.

Sample PHP

<?php header('Location: http://redirectmeto.url'); ?>

Please Share us:
Please rate this snippet

One thought on “How to make a HTTP redirect in PHP

Leave a Reply