Results 1 to 7 of 7

Thread: Redirect Script According to Browser

  1. #1
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Redirect Script According to Browser

    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

    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

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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:
    Code:
    <!--[if IE 6]>
      <meta http-equiv="refresh" content="0;http://www.mysite.com/iesplash/">
    <![endif]-->
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ah! Thats a lot more sensible Thanks

    Is there anyway to add more browsers that get redirected? Like AOL etc...?

    Thanks again
    Last edited by Kazos; 04-23-2007 at 11:38 AM.

  4. #4
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    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

  5. #5
    Join Date
    Apr 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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
    Last edited by Kazos; 04-23-2007 at 01:55 PM.

  6. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    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.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  7. #7
    Join Date
    Aug 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Redirect script

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •