2016-04-24, 04:21 PM
Hey guys, I just made a splash page for my mybb forum
8bits-gaming.com/downloads/splash/index.html
and since its not optimized for mobile version and there is no need for it in phone anyways and Im gonna soon move it to the main domain.
But before that I searched up to see a redirect code for mobile version and came up with this one but it requires a php index, which is currently used by me.
I just wanna ask if I can use index.php to execute this code and then redirect it to index.html?
is it possible this way?
Thanks
8bits-gaming.com/downloads/splash/index.html
and since its not optimized for mobile version and there is no need for it in phone anyways and Im gonna soon move it to the main domain.
But before that I searched up to see a redirect code for mobile version and came up with this one but it requires a php index, which is currently used by me.
<br />
<!--?php <br ?--> $iphone = strpos($_SERVER['HTTP_USER_AGENT'],"iPhone");<br />
$android = strpos($_SERVER['HTTP_USER_AGENT'],"Android");<br />
$berry = strpos($_SERVER['HTTP_USER_AGENT'],"BlackBerry");<br />
$ipod = strpos($_SERVER['HTTP_USER_AGENT'],"iPod");<br />
if ($iphone || $android || $palmpre || $ipod || $berry == true)<br />
{<br />
echo "<script>// <![CDATA[<br />
window.location='http://m.site.com'<br />
// ]]></script>";<br />
}<br />
?><br />
I just wanna ask if I can use index.php to execute this code and then redirect it to index.html?
is it possible this way?
Thanks