Mobile Redirect PHP Help
Ok, I am taking advice from Nicky(I think) and redirecting my mobile traffic to m.mydomain.com before I send it off to wherever I want to.
The problem I am having for some reason is getting the m.mydomain.com to redirect. I want to use a php redirect from one location for all of my sites. So I am using:
<?php
@ini_set('expose_php', 'Off');
@include "http:location of the php file";?>
in the index.php of the m.mydomain.com. I want to be able to change the url at the "location of the php file" one time and it changes it on every site I have. For some reason when I try it its not working.
I am using this in the "location of the php file":
<?php
/* Redirect browser */
header("Location: final redirected URL");
/* Make sure that code below does not get executed when we redirect. */
exit;
?>
Where am I going wrong?
Thanks
|