# BEGIN LSCACHE
# END LSCACHE
# BEGIN NON_LSCACHE
# END NON_LSCACHE

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
	RewriteEngine On
	RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
	RewriteBase /
	RewriteRule ^index\.php$ - [L]
	RewriteCond %{REQUEST_FILENAME} !-f
	RewriteCond %{REQUEST_FILENAME} !-d
	RewriteRule . /index.php [L]
</IfModule>

# END WordPress

# Wordfence WAF
<Files ".user.ini">
	<IfModule mod_authz_core.c>
		Require all denied
	</IfModule>
	<IfModule !mod_authz_core.c>
		Order deny,allow
		Deny from all
	</IfModule>
</Files>

# END Wordfence WAF
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^hsiabd\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.hsiabd\.com$
RewriteRule ^/?$ "https\:\/\/hsiabd\.com\/" [R=301,L]

# BEGIN WP-HUMMINGBIRD-GZIP
# The directives (lines) between "BEGIN WP-HUMMINGBIRD-GZIP" and "END WP-HUMMINGBIRD-GZIP" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_deflate.c>
	SetOutputFilter DEFLATE
	<IfModule mod_setenvif.c>
		<IfModule mod_headers.c>
			SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
			RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
		</IfModule>
	</IfModule>
	<IfModule mod_filter.c>
		AddOutputFilterByType DEFLATE "application/atom+xml" \
		"application/javascript" \
		"application/json" \
		"application/ld+json" \
		"application/manifest+json" \
		"application/rdf+xml" \
		"application/rss+xml" \
		"application/schema+json" \
		"application/vnd.geo+json" \
		"application/vnd.ms-fontobject" \
		"application/x-font-ttf" \
		"application/x-font-opentype" \
		"application/x-font-truetype" \
		"application/x-javascript" \
		"application/x-web-app-manifest+json" \
		"application/xhtml+xml" \
		"application/xml" \
		"font/eot" \
		"font/opentype" \
		"font/otf" \
		"image/bmp" \
		"image/svg+xml" \
		"image/vnd.microsoft.icon" \
		"image/x-icon" \
		"text/cache-manifest" \
		"text/css" \
		"text/html" \
		"text/javascript" \
		"text/plain" \
		"text/vcard" \
		"text/vnd.rim.location.xloc" \
		"text/vtt" \
		"text/x-component" \
		"text/x-cross-domain-policy" \
		"text/xml"
		
	</IfModule>
	<IfModule mod_mime.c>
		AddEncoding gzip              svgz
	</IfModule>
</IfModule>
# END WP-HUMMINGBIRD-GZIP

# BEGIN WP-HUMMINGBIRD-CACHING
# The directives (lines) between "BEGIN WP-HUMMINGBIRD-CACHING" and "END WP-HUMMINGBIRD-CACHING" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresDefault A0
	
	<FilesMatch "\.(txt|xml|js)$">
		ExpiresDefault A31536000
	</FilesMatch>
	
	<FilesMatch "\.(css)$">
		ExpiresDefault A31536000
	</FilesMatch>
	
	<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$">
		ExpiresDefault A31536000
	</FilesMatch>
	
	<FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
		ExpiresDefault A31536000
	</FilesMatch>
</IfModule>

<IfModule mod_headers.c>
	<FilesMatch "\.(txt|xml|js)$">
		Header set Cache-Control "max-age=31536000"
	</FilesMatch>
	
	<FilesMatch "\.(css)$">
		Header set Cache-Control "max-age=31536000"
	</FilesMatch>
	
	<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|woff2|svg)$">
		Header set Cache-Control "max-age=31536000"
	</FilesMatch>
	
	<FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
		Header set Cache-Control "max-age=31536000"
	</FilesMatch>
</IfModule>
# END WP-HUMMINGBIRD-CACHING

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php81” package as the default “PHP” programming language.
<IfModule mime_module>
	AddHandler application/x-httpd-ea-php81 .php .php8 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
