@countZer0

Почему редирект кидает на http?

Всем привет!

Помогите разобраться почему странно срабатывает редирект (сначала перекидывает на http, а потом уже на правильную страницу см.скришот)
60a126f012fb7983139564.png

htaccess:

Options -Indexes 
ErrorDocument 404 /404.php

RewriteEngine On
RewriteCond %{HTTP:X-SSL} !^yes$
RewriteRule (.*) https://*****.ru/$1 [R=301,L]
	
<IfModule mod_php5.c>
	php_flag allow_call_time_pass_reference 1
	php_flag session.use_trans_sid off

	#php_value display_errors 1

	#php_value mbstring.internal_encoding UTF-8
</IfModule>

RewriteEngine On

#RewriteCond %{HTTP:X-Forwarded-Proto} !https
#RewriteCond %{HTTPS} off
#RewriteRule ^ https://*****.ru%{REQUEST_URI} [L,R=301]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*[^/])$ $1/ [L,R=301]



<IfModule mod_rewrite.c>
	Options +FollowSymLinks
	RewriteEngine On
	RewriteBase /
	

	RewriteCond %{HTTP_HOST} ^www.*****.ru$ [NC]
	RewriteRule ^(.*)$ https://*****.ru/$1 [R=301,L]

	RewriteCond %{THE_REQUEST} ([^\s]*)\/{2,}(\?[^\s]*)?
	RewriteRule (.*) %1 [R=301,L]

	#RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
	#RewriteRule ^(.*)$ https://%{HTTP_HOST}/$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]
        RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite_my.php$
        RewriteRule ^(.*)$ /bitrix/urlrewrite_my.php [L]
	RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]

</IfModule>

Redirect 301 /catalog/richtraki/rictraki-hyundai-20BRJ-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-20BRJ-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-16BRJ-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-16BRJ-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-20BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-20BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-25BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-25BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-14BRJ-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-14BRJ-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-18BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-18BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-15BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-15BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-14BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-14BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-13BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-13BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-10BR-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-10BR-7ac/
Redirect 301 /catalog/richtraki/rictraki-hyundai-13BOP-7/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-13BOP-7/
Redirect 301 /catalog/richtraki/rictraki-hyundai-10BOP-7/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-10BOP-7/
Redirect 301 /catalog/richtraki/rictraki-hyundai-25BRJ-7ac/ https://*****.ru/catalog/richtraki-hyundai/rictraki-hyundai-25BRJ-7ac/
Redirect 301 /catalog/electricheskie-pogruzchiki-7/ https://*****.ru/catalog/electricheskie-pogruzchiki-hyundai/
Redirect 301 /catalog/electricheskie-pogruzchiki-9/ https://*****.ru/catalog/electricheskie-pogruzchiki-hyundai/


Redirect 301 /catalog/all/filter/capacity-from-10000-to-10000/apply/ https://*****.ru/catalog/10-tonn/
Redirect 301 /catalog/all/filter/capacity-from-1000-to-1000/apply/ https://*****.ru/catalog/1-tonna/
Redirect 301 /catalog/all/filter/capacity-from-2000-to-2000/apply/ https://*****.ru/catalog/2-tonny/
Redirect 301 /catalog/all/filter/capacity-from-2000-to-2000/apply/ https://*****.ru/catalog/2-tonny/
Redirect 301 /catalog/all/filter/capacity-from-3000-to-3000/apply/ https://*****.ru/catalog/3-tonny/
Redirect 301 /catalog/all/filter/capacity-from-4000-to-4000/apply/ https://*****.ru/catalog/4-tonny/
Redirect 301 /catalog/all/filter/capacity-from-5000-to-5000/apply/ https://*****.ru/catalog/5-tonn/
Redirect 301 /catalog/all/filter/capacity-from-6000-to-6000/apply/ https://*****.ru/catalog/6-tonn/
Redirect 301 /catalog/all/filter/capacity-from-7000-to-7000/apply/ https://*****.ru/catalog/7-tonn/
Redirect 301 /catalog/all/filter/capacity-from-8000-to-8000/apply/ https://*****.ru/catalog/8-tonn/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-france/apply/ https://*****.ru/catalog/francuzskie-pogruzchiki/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-korea/apply/ https://*****.ru/catalog/korejskie-pogruzchiki/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-japan/apply/ https://*****.ru/catalog/yaponskie-pogruzchiki/
Redirect 301 /catalog/all/filter/capacity-from-9000-to-9000/apply/ https://*****.ru/catalog/9-tonn/

Redirect 301 /catalog/all/filter/capacity-from-10000-to-10000/apply https://*****.ru/catalog/10-tonn/
Redirect 301 /catalog/all/filter/capacity-from-1000-to-1000/apply https://*****.ru/catalog/1-tonna/
Redirect 301 /catalog/all/filter/capacity-from-2000-to-2000/apply https://*****.ru/catalog/2-tonny/
Redirect 301 /catalog/all/filter/capacity-from-3000-to-3000/apply https://*****.ru/catalog/3-tonny/
Redirect 301 /catalog/all/filter/capacity-from-4000-to-4000/apply https://*****.ru/catalog/4-tonny/
Redirect 301 /catalog/all/filter/capacity-from-5000-to-5000/apply https://*****.ru/catalog/5-tonn/
Redirect 301 /catalog/all/filter/capacity-from-6000-to-6000/apply https://*****.ru/catalog/6-tonn/
Redirect 301 /catalog/all/filter/capacity-from-7000-to-7000/apply https://*****.ru/catalog/7-tonn/
Redirect 301 /catalog/all/filter/capacity-from-8000-to-8000/apply https://*****.ru/catalog/8-tonn/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-france/apply https://*****.ru/catalog/francuzskie-pogruzchiki/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-korea/apply https://*****.ru/catalog/korejskie-pogruzchiki/
Redirect 301 /catalog/all/filter/motor_type-is-diesel-or-electric-or-gas-or-gaspetrol/capacity-from-1500-to-10000/country-is-japan/apply https://*****.ru/catalog/yaponskie-pogruzchiki/
Redirect 301 /catalog/all/filter/capacity-from-9000-to-9000/apply https://*****.ru/catalog/9-tonn/



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

<ifModule mod_expires.c>

 ExpiresActive On
 #кэшировать флэш и изображения на одну неделю
 ExpiresByType image/x-icon "access plus 365 days"
 ExpiresByType image/jpeg "access plus 365 days"
 ExpiresByType image/png "access plus 365 days"
 ExpiresByType image/gif "access plus 365 days"
 ExpiresByType application/x-shockwave-flash "access plus 365 days"
 #кэшировать css, javascript и текстовые файлы на одну неделю
 ExpiresByType text/css "access plus 365 days"
 ExpiresByType text/javascript "access plus 365 days"
 ExpiresByType application/javascript "access plus 365 days"
 ExpiresByType application/x-javascript "access plus 365 days"
 #кэшировать html и htm файлы на один день
 ExpiresByType text/html "access plus 365 day"
 #кэшировать xml файлы на десять минут
 ExpiresByType application/xhtml+xml "access plus 10 minutes"
</ifModule>
AddDefaultCharset utf-8
AddType 'text/html; charset=utf-8' .html .htm .shtml

<IfModule mod_gzip.c>
	mod_gzip_on         Yes
	mod_gzip_dechunk    Yes
	mod_gzip_item_include file		\.(html?|txt|css|js|css?|js?|php|pl|jcn)$
	mod_gzip_item_include mime		^text\.*
	mod_gzip_item_include mime		^application/x-javascript.*
	mod_gzip_item_exclude mime		^image\.*
	mod_gzip_item_exclude rspheader	^Content-Encoding:.*gzip.*
</IfModule>

# gzip сжатие.
<IfModule mod_deflate.c>

# html, txt, css, js, json, xml, htc:
AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript
AddOutputFilterByType DEFLATE text/xml application/xml text/x-component

# веб-шрифты и svg:
<FilesMatch "\.(ttf|otf|eot|svg)$" >
    SetOutputFilter DEFLATE
</FilesMatch>
</IfModule>

<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|js|css|pdf)$">
  Header set Cache-Control "max-age=2592000"
</FilesMatch>
  • Вопрос задан
  • 351 просмотр
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Похожие вопросы