Forum Moderators: phranque
Would there be a way to just use a line in a .htaccess file for the home page? I think I read somewhere that you would redirect users to alternative pages given their OS, Browser etc.
I would like all Mac users to go to the Mac home page at our site and need to know how this can be done using .htaccess.
We are already using mod_rewrite to send users to cgi type pages when they go to a static directory.
It's pretty pathetic IMHO for a site to only work in one browser ;)
You can use .htaccess to redirect based on the user-agent (browser) name, but not on the OS. The browser generally supplies its user-agent name with each request that it makes, but it does not usually send any OS information. However, as stated above, the OS information *is* accessible using a client-side script, such as JavaScript.
I do agree that a standards-compliant site has no need of such work-arounds, but I hope that helps.
Jim