|
Server : Apache System : Linux p3plzcpnl507073.prod.phx3.secureserver.net 4.18.0-553.53.1.lve.el8.x86_64 #1 SMP Wed May 28 17:01:02 UTC 2025 x86_64 User : swg98tjyzel1 ( 5098476) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/swg98tjyzel1/public_html/bityatra.com/ |
Upload File : |
# Enable Rewrite Engine
RewriteEngine On
# Redirect HTTP to HTTPS
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# -----------------------
# GZIP Compression
# -----------------------
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/font-woff2
AddOutputFilterByType DEFLATE application/font-woff
</IfModule>
# -----------------------
# Browser Caching
# -----------------------
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 month"
# Images
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/webp "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
# CSS & JS
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
# Fonts
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 year"
</IfModule>
# -----------------------
# Keep-Alive
# -----------------------
<IfModule mod_headers.c>
Header set Connection keep-alive
</IfModule>
# -----------------------
# Security Headers
# -----------------------
<IfModule mod_headers.c>
# HSTS - Force HTTPS
Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
# XSS Protection
Header set X-XSS-Protection "1; mode=block"
# Clickjacking Protection
Header set X-Frame-Options "SAMEORIGIN"
# Content Type Sniffing Protection
Header set X-Content-Type-Options "nosniff"
# Referrer Policy
Header set Referrer-Policy "strict-origin-when-cross-origin"
</IfModule>