View Full Version : Redirect Script According to Browser
Kazos
04-22-2007, 10:28 PM
Hi, I have been looking for a script that will recognise certain browsers and then redirect the choosen browsers away from a page? The best way to discribe it would be looking here www.akria.net where my site has a rubbish message saying that the site is optimised for Firefox (colours and png tranparency things) etc.... I want it to be redirect straight away before that page loads, and sends the user on the splash page for people using firefox. I know its sounds complex, but im sure theres a way to do it. Im a noob here and need help :rolleyes:
Thanks a load in advance ^_^
-Kazos
p.s.
If you have any small 88 by 31 affilaite tab buttons, I would be happy to link to you :P
That's a very bad idea. There are almost certainly plenty of browsers other than Firefox that can display the effects you desire. Rather, a smarter idea would be to redirect IE6 users away from the main splash page, which can be accomplished using conditional comments and a <meta> refresh:
<!--[if IE 6]>
<meta http-equiv="refresh" content="0;http://www.mysite.com/iesplash/">
<![endif]-->
Kazos
04-23-2007, 11:06 AM
Ah! Thats a lot more sensible :) Thanks
Is there anyway to add more browsers that get redirected? Like AOL etc...?
Thanks again
boogyman
04-23-2007, 12:54 PM
AOL is not a browser, it is an Internet Service Provider (ISP). and if i am not mistaken they use netscape ?? as their browser
I am sure you will find that most browsers besides IE are standards compliant. And if you built the site for firefox, then its probably good for most other browsers, so as Twey said, it would be better just to redirect the IE users
Kazos
04-23-2007, 01:43 PM
i know Aol is an ISP but i thought they had a browser as well? nm anyway lol
EDIT
See Aol do have a browser :P
http://i64.photobucket.com/albums/h186/kazos_2006/aol_del.jpg
It's not really a browser. It's basically IE with a different user interface. There's an option to switch to Gecko, the Netscape engine, too.
Scripto
08-20-2007, 02:57 PM
This seems to be a good one, it can redirect on almost anything, even keywords and proxies
http://www.12scripts.com/scripts.php?scripts.id=2
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.