V
V
Vasily Ivanov2021-07-21 09:36:29
1C-Bitrix
Vasily Ivanov, 2021-07-21 09:36:29

How to find and get rid of Bitrix redirect during 1c_import authorization?

Good afternoon everyone!

Faced the following problem:
When you try to start uploading from 1C to the Bitrix website (or check the connection), an incomprehensible redirect to jino.ru hosting occurs with a text about lack of funds. WE DO NOT HAVE ANY RELATIONSHIP WITH JINO AND NEVER HAVE ANYTHING!

In February, the same problem popped up, but quickly resolved itself (I think someone topped up the hosting or domain balance). Now for more than a month we have not been able to unload due to this problem.
According to the log, the error is as follows:

Ответ сервера: <!DOCTYPE html><html data-page="money" data-version="1.11.2"><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Недостаточно средств РЅР° аккаунте</title></head><body><noscript><h1>Недостаточно средств РЅР° аккаунте</h1><p>Работа сайта приостановлена.</p><p><a href="https://www.jino.ru/">Джино</a></p></noscript><div id="root"></div><script src="//parking-static.jino.ru/static/main.js" charset="utf-8"></script></body></html>success
PHPSESSID
lnlked9omfclsaecejd3ivjuj1
sessid=213a516647d5378a06df03f8e7ed1e7d
timestamp=1626774896


I contacted Gino's technical support, they cannot provide information, because. the stub is standard and they do not know which address is triggered. They also can’t see requests from our IP to their server ((We thought we could at least find an account that can be replenished before solving this problem ..

Our technical support can’t participate in any way, because the problem is related to our software, etc. ...

From observations:
- When you try to connect to someone else's site on Bitrix and do an upload (of course, with the wrong login and password), an error pops up precisely for the wrong login and password (which is 100% logical). site with the wrong login-password, the first line pops up
Ответ сервера: <!DOCTYPE html><html data-page="money" data-version="1.11.2"><head><meta http-equiv="content-type" content="text/html;charset=utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>Недостаточно средств на аккаунте</title></head><body><noscript><h1>Недостаточно средств на аккаунте</h1><p>Работа сайта приостановлена.</p><p><a href="https://www.jino.ru/">Джино</a></p></noscript><div id="root"></div><script src="//parking-static.jino.ru/static/main.js" charset="utf-8"></script></body></html><!DOCTYPE html>

60f7c374688d8729595133.jpeg

Does anyone have any ideas what else to check and how to find this redirect and get rid of it? I would be very grateful for advice or a hint in which direction to dig)

Other people have a similar problem
https://forum.infostart.ru/forum9/topic264367/

But no solution has been found yet

60f7c38917c9a913066440.jpeg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander, 2021-07-21
@idruweb

perhaps on the computer in the ets/hosts file an outdated site IP is registered

V
Viktor Taran, 2021-07-22
@shambler81

give your htaccess
The problem may be in the GET parameter because get parameters like ... are used during import? http://site..ru
if you have %{THE_REQUEST} in your rules, then it can catch on to a redirect.
Here is an example

############################################################################
#### Убираем повторяющиеся слеши (/) в URL                              ####
############################################################################
RewriteCond %{THE_REQUEST} //
   # Проверяем, повторяется ли слеш (//) более двух раз.
RewriteCond %{QUERY_STRING} !http(s|)://
  # Убедимся что это не урл в  GET
RewriteRule .* /$0 [R=301,L]
   # Исключаем все лишние слеши.

as you can see here I'm excluding get parameters that have https:// as this is clearly related to imports.
well, and an explicit exclusion of imports in redirects
############################################################################
#### Перенаправляем протокол http на https                              ####
############################################################################
RewriteCond %{HTTPS} off
   # Проверяем наличие https в URL.
RewriteCond %{REQUEST_URI} !^/bitrix/admin/1c_exchange\.php$ [NC] 
   #  Исключим обмен с 1С, ему требуется только 200 
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
   # Перенаправляем протокол на http.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question