mobile redirect – warning cannot modify header info
Trying to add a redirect to my wordpress site to my mobile website.
I have a custom home page that I created. I added the following to the custom home page:
$agent = $_SERVER[‘HTTP_USER_AGENT’];
But it results in this error:
Warning: Cannot modify header information – headers already sent by (output started at …..
Is there a different place I should be adding this code?
- The topic ‘mobile redirect – warning cannot modify header info’ is closed to new replies.