настройки .htaccess
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/robots.txt
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]
RewriteCond %{HTTPS} !on
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www.example.ru$ [NC]
RewriteRule ^(.*)$ https://www.example.ru/$1 [L,R=301]
Проверяю заголовки для домена (
http://example.ru) и получаю так:
HTTP/1.1 302 Found
Date: Fri, 21 Jul 2017 12:17:09 GMT
Server: Apache/2.2.22 (Debian)
Location: https://example.ru/
Cache-Control: max-age=0
Expires: Fri, 21 Jul 2017 12:17:09 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
X-Pad: avoid browser bug
HTTP/1.1 301 Moved Permanently
Date: Fri, 21 Jul 2017 12:17:10 GMT
Server: Apache/2.2.22 (Debian)
Location: https://www.example.ru/
Cache-Control: max-age=0
Expires: Fri, 21 Jul 2017 12:17:10 GMT
Vary: Accept-Encoding
Content-Type: text/html; charset=iso-8859-1
HTTP/1.1 200 OK
Date: Fri, 21 Jul 2017 12:17:10 GMT
Server: Apache/2.2.22 (Debian)
X-Powered-By: PHP/5.4.4-14+deb7u14
Set-Cookie: fusion_visited=yes; expires=Sat, 21-Jul-2018 12:17:10 GMT; path=/
Set-Cookie: USER_PROMOCODE_CLOSE=0; expires=Fri, 21-Jul-2017 11:47:10 GMT
Set-Cookie: PHPSESSID=fac68giqb8qvesu2lhokk657n6; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Pragma: no-cache
Vary: Accept-Encoding
Content-Type: text/html; charset=windows-1251
как убрать 302 редирект?