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.

share|improve this question
1  
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.

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

 
discard

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.