Mhmmd adlı üyeden alıntı: mesajı görüntüle
Javascript;
function redirectToStore() {
var userAgent = navigator.userAgent || navigator.vendor || window.opera;

if (/android/i.test(userAgent)) {
// Android için Play Store linki
window.location.href = 'https://play.google.com/store/apps/details?id=PASTE_YOUR_ANDROID_APP_PACKAGE_NAME_HERE';
} else if (/iPad|iPhone|iPod/i.test(userAgent) && !window.MSStream) {
// iOS için App Store linki
window.location.href = 'https://apps.apple.com/tr/app/YOUR_IOS_APP_NAME/idYOUR_APP_STORE_ID';
} else {
// Diğer platformlar için alternatif bir sayfaya yönlendirme veya mesaj gösterme
window.location.href = 'https://www.example.com';
}
}

//Kodu çaluşturmak için;
redirectToStore();
PHP
function redirectToStore() {
  $userAgent = $_SERVER['HTTP_USER_AGENT'];

  if (preg_match('/android/i', $userAgent)) {
    // Android için Play Store linki
    header('Location: https://play.google.com/store/apps/details?id=PASTE_YOUR_ANDROID_APP_PACKAGE_NAME_HERE');
    exit;
  } else if (preg_match('/iPad|iPhone|iPod/i', $userAgent) && !strpos($userAgent, 'MSStream')) {
    // iOS için App Store linki
    header('Location: https://apps.apple.com/tr/app/YOUR_IOS_APP_NAME/idYOUR_APP_STORE_ID');
    exit;
  } else {
    // Diğer platformlar için alternatif bir sayfaya yönlendirme veya mesaj gösterme
    header('Location: https://www.example.com');
    exit;
  }
}

// Yönlendirme işlemini çağırma
redirectToStore();
Nasıl URL çevirebiliriz hocam bunu?