I'm trying to do a header redirect:
But I'm getting this error message (no matter what theme I use they all generate the same error message):
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/themes/twentythirteen/header.php:11) in /wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 2
Code:
header("Location: http://www.redirect.to.url.com/");
Warning: Cannot modify header information – headers already sent by (output started at /wp-content/themes/twentythirteen/header.php:11) in /wp-content/plugins/insert-php/includes/shortcodes/shortcode-php.php(52) : eval()’d code on line 2