E
E
Eugeny1202021-05-06 18:55:43
Yandex Market
Eugeny120, 2021-05-06 18:55:43

Error 301 when connecting Yandex Market?

When connecting Yandex Market, an error occurs:
ErrorHTTP
Details 301 Moved Permanently
Method POST
Resource /stocks
Checking in the module: Redirected https:
//tdlorien.ru/bitrix/services/yandex.market

/... — request address
tdlorien.ru:443 /bitrix/services/yandex.market/trad... — redirect address.

Exclude custom redirects inside the bitrix directory.
.htaccess

Add RewriteCond %{REQUEST_URI} !^/bitrix/ exception before custom RewriteRule rules. Please note that you cannot add an exception before RewriteRule ^(.*)$ /bitrix/urlrewrite.php.

Tried to add, nothing changes.

My .htaccess

Options -Indexes
ErrorDocument 404 /404.php
php_flag display_errors on
php_value error_reporting 6143

RewriteEngine on
RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ https:/ /tdlorien.ru/ [R=301,L]
RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index\.html\ HTTP/
RewriteRule ^index\.html$ https://tdlorien.ru/ [R=301,L]
RewriteCond %{REQUEST_URI} !^/bitrix/admin/1cv7_exchange\.php$
RewriteCond %{SERVER_PORT} !^443$ [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^(.*)$ https://tdlorien.ru/$1 [R=301,L]
RewriteCond %{THE_REQUEST} //
# Check if the forward slash (//) is repeated more than twice.
RewriteRule .* /$0 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ /$1/ [R=301,L]


php_flag session.use_trans_sid of
php_value display_errors 1
#php_value mbstring.internal_encoding UTF-8



Options +FollowSymLinks
RewriteEngine On
RewriteCond %{THE_REQUEST} /(.*)index.php.*$
RewriteCond %{THE_REQUEST} !bitrix/admin/
RewriteRule .* / %1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]




DirectoryIndex index.php index.html



ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day "
ExpiresByType image/gif "access plus 3 day"
ExpiresByType image/png "access plus 3 day"
ExpiresByType text/css "access plus 3 day"
ExpiresByType application/javascript "access plus 3 day" Please tell me


where to dig...

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question