View Single Post
Old 03-26-2012, 06:42 PM  
PornHustler
Confirmed User
 
Join Date: May 2009
Posts: 456
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
__________________
Contact ICQ: 570768377
Sub 1:440 Blog Converting Sponsor
PornHustler is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote