<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule . /index.php [L]

# Compress HTML, CSS, JavaScript, Text, XML and fonts
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE application/x-font
AddOutputFilterByType DEFLATE application/x-font-opentype
AddOutputFilterByType DEFLATE application/x-font-otf
AddOutputFilterByType DEFLATE application/x-font-truetype
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml

# Remove browser bugs (only needed for really old browsers)
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent

</IfModule>
# Leverage Browser Caching Ninja -- Starts here
# Do not write anything between "Leverage Browser Caching Ninja -- Starts" and "Leverage Browser Caching Ninja -- Ends"
# It will be deleted while uninstalling Leverage Browser Caching Ninja plugin
<IfModule mod_expires.c>
ExpiresActive On 
ExpiresDefault "access plus 1 month" 
ExpiresByType image/x-icon "access plus 1 year" 
ExpiresByType image/gif "access plus 1 month" 
ExpiresByType image/png "access plus 1 month" 
ExpiresByType image/jpg "access plus 1 month" 
ExpiresByType image/jpeg "access plus 1 month" 
ExpiresByType text/css "access 1 month" 
ExpiresByType application/javascript "access plus 1 year" 
</IfModule> 
# Leverage Browser Caching Ninja -- Ends here

<Files "wp-login.php">
    Order deny,allow
    Deny from all
    Allow from 174.96.0.0/12  TWC
    Allow from 172.72.0.0/14  TWC
    Allow from 71.64.0.0/12  TWC
    Allow from 98.24.0.0/13  TWC
    Allow from 65.184.0.0/13  TWC
    Allow from 74.218.0.0/15  TWC
    Allow from 69.132.0.0/14  TWC
    Allow from 65.35.0.0/16   TWC
    Allow from 70.92.0.0/14  TWC
    Allow from 75.176.0.0/12  TWC
    Allow from 2606:A000::/32  TWC
    Allow from 108.169.128.0/18  TWC
    Allow from 174.96.0.0/12  TWC
    Allow from 98.100.0.0/14  TWC
    Allow from 65.0.0.0/12  Bellsouth
    Allow from 99.128.0.0/10  Bellsouth
    Allow from 184.39.0.0/16  Bellsouth
    Allow from 74.235.0.0/17  Bellsouth
    Allow from 169.32.0.0/11  Windstream
    Allow from 162.39.123.64/26  Windstream
    Allow from 70.144.0.0/12  Windstream
    Allow from 71.28.64.0/20  Windstream
    Allow from 71.28.108.0/24  Windstream
    Allow from 71.31.64.0/19  Windstream
    Allow from 98.16.0.0/13  Windstream
    Allow from 173.184.0.0/13  Windstream
    Allow from 67.141.208.0/21  windstream
    Allow from 67.140.240.0/20  windstream
    Allow from 166.82.120.0/24  Windstream
    Allow from 24.224.64.0/18  MI Connection
    Allow from 68.71.160.0/19  MI Connection
    Allow from 108.192.0.0/10  ATT
    Allow from 23.112.0.0/12  ATT
    Allow from 68.120.0.0/13  ATT
    Allow from 172.0.0.0/12  ATT
    Allow from 12.146.174.32/29  ATT
    Allow from 108.64.0.0/11  ATT
    Allow from 8.25.224.0/20 City of Salisbury
    Allow from 107.7.0.0/16  Earthlink
    Allow from 70.192.0.0/11  Verizon
    Allow from 24.74.0.0/16   RR
    Allow from 70.60.0.0/14  RR
    Allow from 66.226.32.0/19  Yadkin Valley Telephone
    Allow from 67.213.32.0/19  Yadkin Valley Telephone
    Allow from 64.128.0.0/15  tw telecom holdings, inc

</Files>
RewriteEngine on


# 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

# 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

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