A
A
Andrey Eskov2017-08-21 13:53:32
1C-Bitrix
Andrey Eskov, 2017-08-21 13:53:32

How to solve the problem with redirecting http to https in Bitrix?

Good afternoon. Tell me how to solve my problem?
There is a server with a Bitrix environment. There is a site. Attached to an HTTPS site. Only now, when accessing site.ru, it redirects to htts://site.ru:80
Although .htaccess is empty (Standard)

Options -Indexes 
ErrorDocument 404 /404.php

<IfModule mod_php5.c>
  php_flag allow_call_time_pass_reference 1
  php_flag session.use_trans_sid off
</IfModule>

<IfModule mod_rewrite.c>
  Options +FollowSymLinks
  RewriteEngine On
  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}]
</IfModule>

<IfModule mod_dir.c>
  DirectoryIndex index.php index.html
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresByType image/jpeg "access plus 3 day"
  ExpiresByType image/gif "access plus 3 day"
</IfModule>

Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nikita Ermilichev, 2017-08-21
@taurus2790

Delete this .htsecure file in www folder
There is a rule in nginx settings

# Redirect to ssl if need
    if (-f /home/bitrix/www/.htsecure) { rewrite ^(.*)$ https://$host$1 permanent; }

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question