Проверяю заголовок сайта, но сам код страницы не показывает.
Скрытый текст |
---|
HTTP/1.1 200 OK Server: nginx/1.16.1 Date: Sun, 25 Aug 2019 07:19:12 GMT Content-Type: text/html; charset=UTF-8 Content-Length: 0 Connection: keep-alive Vary: HTTPS X-Powered-By: PHP/7.1.31 P3P: policyref="/bitrix/p3p.xml", CP="NON DSP COR CUR ADM DEV PSA PSD OUR UNR BUS UNI COM NAV INT DEM STA" X-Powered-CMS: Bitrix Site Manager (565f79641978460e03daed7ccf715c7f) Set-Cookie: PHPSESSID Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache X-Frame-Options: SAMEORIGIN X-Content-Type-Options: nosniff X-Frame-Options: SAMEORIGIN |
.htaccess
Скрытый текст |
---|
Options -Indexes ErrorDocument 404 /404.php <IfModule mod_php7.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 #php_value mbstring.func_overload 2 </IfModule> <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On #RewriteCond %{HTTP_HOST} ^orto-kosmos.ru #RewriteRule (.*) 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> # редирект на http #RewriteCond %{HTTPS} on #RewriteCond %{HTTP:X-Forwarded-Proto} !http #RewriteRule ^(.*)$ <ifModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/css text/javascript application/javascript application/x-javascript </ifModule> |
Можно ли, где-то помимо htaccess задать правила заголовков? При этом заголовке не сразу бывает показывается страница, приходится перезагружать ее.