Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On my website I should redirect Android users to my application on Android Market. What is the optimal way to do this? My first idea was

       RewriteCond %{HTTP_USER_AGENT}  Android [NC]
       RewriteRule ^/$         market://details?id=......

But it doesn't work.

share|improve this question
While this question is on-topic here as long as you're running Apache on a unix system, you'll find more Apache experts on Webmasters. Don't repost: if you like, a moderator can migrate your question there (use the flag button to request a migration). – Gilles Jan 8 '12 at 16:51

Just redirect to https://market.android.com/details?id=...; the Market application is set up as a handler for those URLs.

share|improve this answer
I already tried http[s]://market... - in this case android device asks if user want to continue using browser or market. And I want to sent user directly to market using market app. – Vitaly Jan 9 '12 at 8:52

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.