Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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.

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

1 Answer 1

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

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

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .