Answer the question
In order to leave comments, you need to log in
How to remove viber:// to https:// replacement in WordPress?
Site on WordPress, I add a link to the Viber chat like:
viber://pa?chatURI=XXXXXXXXXX&text=Hello!
But the site engine replaces viber:// with https:// and the link stops working correctly. How to disable automatic replacement?
https://pa?chatURI=XXXXXXXXXX&text=Hello!
An SSL certificate is connected to the domain.
The code that I paste into the widget window:
<a href="viber://pa?chatURI=XXXXXXXXXX&text=Hello!" target="_blank" rel="nofollow"><i class="fab fa-viber" style="color:#e50000; font-size: 42px; padding-right: 10px;"></i></a>
Answer the question
In order to leave comments, you need to log in
Place the file on any of your sites, the link will be like this
https://yousite.ru/bot.php
bot.php with the following content:
<?php
header('Location: viber://pa?chatURI=XXXXXXXXXX&text=Hello!');
exit;
>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question