Jump to content

Need a help with redirecting


LeXeR

Recommended Posts

How can I redirect a user if he or she is not using firefox ? please help ! I'm old user of php but i don't know how to do this script i tried this but it doesn't work :(

 

<?php
$redirect="http://www.redirecturlgoeshere.net";
if(preg_match('/Firefox/',$_SERVER['HTTP_USER_AGENT'] '!=1'))) header("Location: ".$redirect);
?>

Link to comment
https://forums.phpfreaks.com/topic/131833-need-a-help-with-redirecting/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.