<IfModule mod_headers.c>
Header set Cache-Control "max-age=0,no-store"
</IfModule>

<IfModule mod_deflate.c>
 # 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>

<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/pdf "access plus 1 year"
ExpiresByType text/x-javascript "access plus 1 year"
ExpiresByType application/x-shockwave-flash "access plus 1 year"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 year"
</IfModule>

RewriteEngine on

RewriteCond %{HTTP_HOST} ^manglaplastic.com [NC]
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{HTTP_HOST} !^www\.(.*)
RewriteRule (.*) http://www.%{HTTP_HOST}/$1 [R=301,L]

 #Enforce SSL https://www. 
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

#RewriteCond %{HTTPS} on
#RewriteRule ^.*$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ErrorDocument 404 https://www.manglaplastic.com

RewriteRule ^index\.htm$ index.php
RewriteRule ^market-area\.htm$ market-area.php
RewriteRule ^blog\.htm$ blog.php
RewriteRule ^blog/([^/]*)\.htm$  blog-details.php?blog_name=$1&caa=$1 [L]
RewriteRule ^about\.htm$ about.php
RewriteRule ^contact\.htm$ contact.php
RewriteRule ^career\.htm$ career.php
RewriteRule ^career/([^/]+)\.htm$ career-details.php?career_id=$1 [L,QSA]
RewriteRule ^career-form\.htm$ career-form.php
RewriteRule ^our-clients\.htm$ our-clients.php
RewriteRule ^our-certification\.htm$ our-certification.php
RewriteRule ^faq\.htm$ faq.php
RewriteRule ^gallery\.htm$ gallery.php
RewriteRule ^photo-gallery\.htm$ photo-gallery.php
RewriteRule ^video-gallery\.htm$ video-gallery.php
RewriteRule ^sitemap\.htm$ sitemap.php
RewriteRule \.htm$ category.php
RewriteRule ^([^/]*)/$ index_sub.php?cid=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.htm$  category_sub.php?pid=$2&ca=$1 [L]
Redirect 301 /products.html https://www.manglaplastic.com/gumboots.htm
Redirect 301 /company-profile.html https://www.manglaplastic.com/about.htm
Redirect 301 /contact-us.html https://www.manglaplastic.com/contact.htm
Redirect 301 /mining-gumboot.html https://www.manglaplastic.com/mining-gumboot.htm
Redirect 301 /super-gumboot-1552280.html https://www.manglaplastic.com
Redirect 301 /branded-shoes-5260557.html https://www.manglaplastic.com/branded-gumboots.htm
Redirect 301 /rain-boot-360843.html https://www.manglaplastic.com/rain-boot.htm
Redirect 301 /rain-shoe-360848.html https://www.manglaplastic.com
Redirect 301 /industrial-gumboot-360839.html https://www.manglaplastic.com
Redirect 301 /industrial-safety-gumboot.html https://www.manglaplastic.com/industrial-safety-gumboot.htm
Redirect 301 /construction-boots-5461631.html https://www.manglaplastic.com/construction-gumboot.htm
Redirect 301 /tactical-boots-5444331.html https://www.manglaplastic.com/tactical-boot.htm
Redirect 301 /capetown-gumboots-5451882.html https://www.manglaplastic.com
Redirect 301 /ice-boot-5104796.html https://www.manglaplastic.com/ice-gumboot.htm
Redirect 301 /leather-safety-shoes.html https://www.manglaplastic.com/leather-safety-shoes-with-pu-sole.htm
Redirect 301 /mount-black-360840.html https://www.manglaplastic.com
Redirect 301 /chota-gumboot-5073334.html https://www.manglaplastic.com
Redirect 301 /pvc-shoe-360847.html https://www.manglaplastic.com/pvc-sole-safety-shoes.htm
Redirect 301 /mountain-boots-5418722.html https://www.manglaplastic.com
Redirect 301 /nitrile-gumboot-5394322.html https://www.manglaplastic.com/nitrile-rubber-safety-gumboot.htm
Redirect 301 /rubber-safety-gumboot.html https://www.manglaplastic.com/rubber-gumboots.htm
Redirect 301 /swatch-safety-shoe-3070904.html https://www.manglaplastic.com
Redirect 301 /mens-safety-shoes-5434402.html https://www.manglaplastic.com/mens-leather-safety-shoes.htm
Redirect 301 /shoe-testing-lab-3071094.html https://www.manglaplastic.com
Redirect 301 /pvc-gum-boots-75181.html https://www.manglaplastic.com/pvc-gumboot.htm
Redirect 301 /gold-year-gumboot-3031038.html https://www.manglaplastic.com
Redirect 301 /formal-safety-shoes-5451311.html https://www.manglaplastic.com
Redirect 301 /vulcanized-rubber-gumboot-5260581.html https://www.manglaplastic.com/vulcanized-safety-gumboot.htm
Redirect 301 /aenta-safety-shoe-5260521.html https://www.manglaplastic.com
Redirect 301 /metal-instep-footwear-5464519.html https://www.manglaplastic.com
Redirect 301 /double-colour-gumboot-5072973.html https://www.manglaplastic.com/double-colour-gumboot.htm
Redirect 301 /welding-safety-shoes-5441086.html https://www.manglaplastic.com/welding-safety-shoes.htm
Redirect 301 /glacer-safety-shoes-5245659.html https://www.manglaplastic.com
Redirect 301 /veto-power-shoes-8681261.html https://www.manglaplastic.com
Redirect 301 /red-sole-gumboots-5441420.html https://www.manglaplastic.com
Redirect 301 /target-safety-shoes-5433844.html https://www.manglaplastic.com
Redirect 301 /fire-fighting-gumboot-5260611.html https://www.manglaplastic.com/fireman-gumboots.htm
Redirect 301 /tiger-safety-gumboot-2196517.html https://www.manglaplastic.com/tiger-gumboot.htm
Redirect 301 /genuine-leather-boots-5452408.html https://www.manglaplastic.com
Redirect 301 /cold-storage-boot-5073344.html https://www.manglaplastic.com
Redirect 301 /rain-safety-shoes-5442035.html https://www.manglaplastic.com/rain-boot.htm
Redirect 301 /water-proof-shoe-75186.html https://www.manglaplastic.com/waterproof-gumboot.htm
Redirect 301 /coal-mining-gumboot-5073158.html https://www.manglaplastic.com/coal-mining-gumboot.htm
Redirect 301 /rubber-ankle-boot-5073355.html https://www.manglaplastic.com/rubber-ankle-boot.htm
Redirect 301 /premier-leather-safety-shoes-5418468.html https://www.manglaplastic.com
Redirect 301 /non-metallic-safety-shoes-5434076.html https://www.manglaplastic.com
Redirect 301 /air-force-safety-shoes-5443589.html https://www.manglaplastic.com
Redirect 301 /swatch-double-colour-safety-shoes-5463954.html https://www.manglaplastic.com/double-colour-safety-shoes.htm
Redirect 301 /black-carbon-leather-safety-shoe-5260536.html https://www.manglaplastic.com/black-gumboot.htm
Redirect 301 /composite-toe-cap-safety-shoes-5394471.html https://www.manglaplastic.com/composite-toe-cap-gumboot.htm
Redirect 301 /leather-upper-pvc-sole-safety-shoe-5504816.html https://www.manglaplastic.com/leather-safety-shoe-with-pvc-sole.htm
Redirect 301 /utils/sms_now.html?id=ID__1099140__1157675__CATALOG__1448__Catalogs https://www.manglaplastic.com
Redirect 301 /fm/1157675/file.pdf https://www.manglaplastic.com

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 1.168.44.235
deny from 47.79.0.0/16
deny from 47.82.0.0/15

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