I regularly come across questions from the series: how can I make it so that I can upload an Instagram account to my profile, and so that the link opens it not in the browser, but in the application? Well, variations of these questions regarding other applications.
It is clear that there are a lot of services that provide services for creating deep links, but now I will tell you how to make your own deep link in exactly 2 minutes. Moreover, I will show you using the example of PHP, JS and bare HTML.
Option #1.
Any one will be neededhosting, which supports PHP, create a file index.php there and put the following code into it:
<?php
header('Location: instagram://user?username=dvygolov',301);
?>
We save, send the link to ourselves, say, in Messenger, go over, see that my insta has opened and don’t forget to subscribe!
Option number 2, for freeloaders.
If you don’t havehostingand money for it, then any constructor that supports JS will do. Open index.html and paste the following script there:
<html>
<script>
window.location.replace("instagram://user?username=dvygolov");
</script>
</html>
We go in, see my insta and, of course, subscribe, or, if you subscribed in the previous step, then subscribe the mother and the girl.
Option number 3, for the poor.
If you don’t even have access to a constructor with JS, but only bare HTML, then you can do a deep link here too. Open index.html and shove the following construction into its head:
<html>
<head>
<meta http-equiv="refresh" content="0; url=instagram://user?username=dvygolov">
</head>
</html>
We test, move on, and if we see my instagram, we repost it, tell our friends and send it to medonations, I haven’t seen them since the end of summer, I think?
Conclusions
Congratulations! We just looked at how you can do a regular redirect in three different ways. The main “magic” here lies in the fact thatWherewe are doing this redirect. The trick is this: usually on the Internet we use links with the name of the protocolhttp://. Such links open in a regular browser or in WebView if we open links from some application like Facebook/tg, etc.
But if instead of http we use a special “protocol”instagram://, then the webview of the store does not know how to open the link and asks the phone OS: “What should I do with such a link?” The OS replies: “It’s none of your business, this is not your link, but another application!” and opens it. Each shelf can have its own link format registered in the system. I showed you an example with Instagram, if you search, you will find how to open other applications.
And that’s all, go to the plus!


А сейчас работает ? Эти диплинки ? Что-то не получается …
Это работает и будет работать всегда.
Бро, спасибо за идею. а в телеге как сделать?
чтобы в телегу редиректило? tg://
спасибо бро, огромное! кстати видел тебя на конфе, красава. Много годноты спалил!
на здоровье!)
Уведомление: 10 способов создать вайт-пейдж: все известные мне варианты | Жёлтый веб
Уведомление: 10 способов создать вайт-пейдж | Арбитраж Трафика
Уведомление: 10 способов создать вайт-пейдж - Cpagram