Welcome to HBH! If you had an account on hellboundhacker.org you will need to reset your password using the Lost Password system before you will be able to login.

Redirect to certain page depending on browser version.


ghost's Avatar
0 0

Hello, this is my first post in the forum, so I'm not completely sure if this is the correct category for my question.

I'm creating a website and found out that it is not correctly viewed in IE 5.5 or below, so I made a much simpler, not as "showy" as the original, that works perfectly fine in Firefox and IE 6 and above.

Well my question is: how can I detect the browser version/user agent via PHP or .htaccess, so that the page is redirected depending on the browser? (Maybe the same way that it is done in Basic Web Hacking 3)

I'm not asking to create the code for me (though if posible, it would be great! :D ), just some advice on how to do it.

Also, I found a list of useragents in Wikipedia, and would like to know if they are correct: http://en.wikipedia.org/wiki/User_agent

Thanks a lot in advance! :happy:


ghost's Avatar
0 0

(Sorry for late response)

THANKS! Very useful!