0

I am still working on the redirection issue (As noted in a previous thread here).

I think I may have found a nice solution via a video tutorial on the subject.

When running this test script, it should simply load google.com; The result though is a "Page not found" screen.

Please look at my code.

<?php
ob_start();
?>

<h1>ob redirect test</h1>
Hi

<?php
$redirect_page = 'https://www.google.com';
$redirect = true;

if ($redirect = true) {
    header('Location:$redirect_page');
}

ob_end_flush();
?>

Thank you in advance for your assistance!
Matthew

3
Contributors
3
Replies
18
Views
3 Years
Discussion Span
Last Post by nauticalmac
1

cereal:

Works perfectly (And I learned more about proper syntax)!

You're awesome.

Thank you for your help, Friend.

Matthew

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.