I’ve done the 7.0.1 update Roots nguongame.com project. And all PHP Header Location not working.
For Roots 6.5.2 is fully working.
An example: I redirect all 404 on the homepage but it does not work.
My code:
<?php
// 301 Moved Permanently
header("Location: http://nguongame.com/",TRUE,301);
?>
<?php get_template_part('templates/page', 'header'); ?>
<div class="alert alert-warning">
<?php _e('Sorry, but the page you were trying to view does not exist.', 'roots'); ?>
</div>
<p><?php _e('It looks like this was the result of either:', 'roots'); ?></p>
<ul>
<li><?php _e('a mistyped address', 'roots'); ?></li>
<li><?php _e('an out-of-date link', 'roots'); ?></li>
</ul>
<?php get_search_form(); ?>
Please check and showed me how to perform the function Header Location with Roots.
Sincerely.