OS Sniffing

Not sure why you want to do it with .htaccess

but here's how to do it with php:

Code:
if(preg_match('/Windows NT 5.(1|2)/',$_SERVER["HTTP_USER_AGENT"])){

	echo 'hello windows xp user, have a different css file: <style>.....';

}

Here are the Windows NT numbers for the various Windows OS's:

http://en.wikipedia.org/wiki/Windows_NT
 
In my experience, cross operating system issues can be solved gracefully.

Can we ask to what ends you need this?
 
Back
Top Bottom