
نوشته اصلی توسط
sir1
قبل از گزاشتن کد ارور زیر را میده:
Error: Subdomain`www.acgih.ir` is a subdomain. Please preload `acgih.ir` instead. (Due to the size of the preload list and the behaviour of cookies across subdomains, we only accept automated preload list submissions of whole registered domains.)
Error: No HSTS headerResponse error: No HSTS header is present on the response.
ولی بعد از قرار دادن کد ارور به صورت زیر درمیاد:
Error: Subdomain`www.acgih.ir` is a subdomain. Please preload `acgih.ir` instead. (Due to the size of the preload list and the behaviour of cookies across subdomains, we only accept automated preload list submissions of whole registered domains.)
Error: No includeSubDomains directiveThe header must contain the `includeSubDomains` directive.
خوب مشکلی نیست اگر می خواهید زیر دامنه ها را هم پیوست کند کد را به صورت زیر تغییر دهید
کد PHP:
<IfModule mod_headers.c>
Header set Strict-Transport-Security "max-age=31536000; includeSubDomains;preload" env=HTTPS
</IfModule>