Test code đóng khung - Trang công nghệ 24h

Latest

Đơn giản là chia sẽ đến với mọi người.

Quảng cáo

BANNER 728X90

Thứ Ba, 1 tháng 4, 2025

Test code đóng khung

Đoạn code lock.php khi website tạm dừng bảo trì Khung có Thanh Cuộn

Đoạn code lock.php khi website tạm dừng bảo trì

!-- Đây là một ghi chú trong HTML -->
RewriteEngine on
Options -Indexes
DirectoryIndex lock.php index.php
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]


ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"

AddOutputFilterByType DEFLATE text/* text/html text/xml text/css text/plain text/x-component text/x-js text/richtext text/xsd text/xsl
AddOutputFilterByType DEFLATE image/svg+xml application/xhtml+xml application/xml image/x-icon
AddOutputFilterByType DEFLATE application/rdf+xml application/rss+xml application/atom+xml
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
AddOutputFilterByType DEFLATE application/x-font-ttf application/x-font-otf
AddOutputFilterByType DEFLATE font/truetype font/opentype
Header append Vary User-Agent env=!dont-vary
AddOutputFilter DEFLATE js css htm html xml text
Header set Cache-Control "max-age=29030400, public"

Header set Cache-Control "max-age=604800, public"
Header set Cache-Control "max-age=604800, proxy-revalidate"
Header set Cache-Control "max-age=604800, private, proxy-revalidate"

Không có nhận xét nào: