# Extra Security Headers
<IfModule mod_headers.c>
	Header set X-XSS-Protection "1; mode=block"
	Header always append X-Frame-Options SAMEORIGIN
	Header set X-Content-Type-Options nosniff
</IfModule>

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<ifModule mod_headers.c>
Header always set Content-Security-Policy "upgrade-insecure-requests;"
</IfModule>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]

# add a trailing slash to /wp-admin
RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

# BEGIN WP-Optimize Browser Cache
<IfModule mod_expires.c>
	ExpiresActive On
	ExpiresByType text/css "access 1 day"
	ExpiresByType text/html "access 1 day"
	ExpiresByType image/gif "access 1 day"
	ExpiresByType image/png "access 1 day"
	ExpiresByType image/jpg "access 1 day"
	ExpiresByType image/jpeg "access 1 day"
	ExpiresByType image/webp "access 1 day"
	ExpiresByType image/x-icon "access 1 day"
	ExpiresByType application/pdf "access 1 day"
	ExpiresByType application/javascript "access 1 day"
	ExpiresByType text/x-javascript "access 1 day"
	ExpiresByType application/x-shockwave-flash "access 1 day"
	ExpiresDefault "access 1 day"
</IfModule>

<IfModule mod_headers.c>
	<filesMatch "\.(ico|jpe?g|png|gif|webp|swf)$">
		Header set Cache-Control "public"
	</filesMatch>
	<filesMatch "\.(css)$">
		Header set Cache-Control "public"
	</filesMatch>
	<filesMatch "\.(js)$">
		Header set Cache-Control "private"
	</filesMatch>
	<filesMatch "\.(x?html?|php)$">
		Header set Cache-Control "private, must-revalidate"
	</filesMatch>
</IfModule>

#Disable ETag
FileETag None
# END WP-Optimize Browser CacheModPagespeed On






# BEGIN WTVCPBlocker


SetEnvIfNoCase User-Agent "AhrefsBot" block_bot


SetEnvIfNoCase User-Agent "MJ12bot" block_bot


SetEnvIfNoCase User-Agent "Rogerbot" block_bot


SetEnvIfNoCase User-Agent "SemrushBot" block_bot


SetEnvIfNoCase User-Agent "ia_archiver" block_bot


SetEnvIfNoCase User-Agent "ScoutJet" block_bot


SetEnvIfNoCase User-Agent "sistrix" block_bot


SetEnvIfNoCase User-Agent "SearchmetricsBot" block_bot


SetEnvIfNoCase User-Agent "SEOkicks-Robot" block_bot


SetEnvIfNoCase User-Agent "Lipperhey Spider" block_bot


SetEnvIfNoCase User-Agent "Exabot" block_bot


SetEnvIfNoCase User-Agent "NCBot" block_bot


SetEnvIfNoCase User-Agent "BacklinkCrawler" block_bot


SetEnvIfNoCase User-Agent "meanpathbot" block_bot


SetEnvIfNoCase User-Agent "PagesInventory" block_bot


SetEnvIfNoCase User-Agent "Aboundexbot" block_bot


SetEnvIfNoCase User-Agent "spbot" block_bot


SetEnvIfNoCase User-Agent "linkdexbot" block_bot


SetEnvIfNoCase User-Agent "Gigabot" block_bot


SetEnvIfNoCase User-Agent "dotbot" block_bot


SetEnvIfNoCase User-Agent "Nutch" block_bot


SetEnvIfNoCase User-Agent "BLEXBot" block_bot


SetEnvIfNoCase User-Agent "Ezooms" block_bot


SetEnvIfNoCase User-Agent "Majestic-12" block_bot


SetEnvIfNoCase User-Agent "Majestic-SEO" block_bot


SetEnvIfNoCase User-Agent "DSearch" block_bot


SetEnvIfNoCase User-Agent "BlekkoBot" block_bot


SetEnvIfNoCase User-Agent "NerdyBot" block_bot


SetEnvIfNoCase User-Agent "JamesBOT" block_bot


SetEnvIfNoCase User-Agent "monitorbacklinks" block_bot


<Limit GET POST HEAD>


Order Allow,Deny


Allow from all


Deny from env=block_bot


</Limit>


# END WTVCPBlocker

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_flag display_errors Off
   php_value max_execution_time 512
   php_value max_input_time 512
   php_value max_input_vars 1400
   php_value memory_limit 3048M
   php_value post_max_size 612M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
   php_value upload_max_filesize 900M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 512
   php_value max_input_time 512
   php_value max_input_vars 1400
   php_value memory_limit 3048M
   php_value post_max_size 612M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php73"
   php_value upload_max_filesize 900M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

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