<IfModule mod_headers.c>
    <FilesMatch "\.(html|htm|php)$">
        Header set Cache-Control "no-store, no-cache, must-revalidate"
    </FilesMatch>
    <FilesMatch "\.(css|js|jpg|jpeg|png|gif|ico|svg|webp)$">
        Header set Cache-Control "max-age=31536000, public"
    </FilesMatch>
</IfModule>
RewriteEngine on
RewriteCond %{THE_REQUEST} //+ [NC]
RewriteRule ^.*$ https://www.wpsbiz.com/hrbotanicsinternational [R=301,L]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s(/[^\s]*)\s [NC]
RewriteRule . / [L,R=301]
### WWW & HTTPS
# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ErrorDocument 404 https://www.wpsbiz.com/hrbotanicsinternational
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.htm$ index.php
RewriteRule ^photo-gallery\.htm$ photo-gallery.php
RewriteRule ^video-gallery\.htm$ video-gallery.php
RewriteRule ^search\.htm$ search.php
RewriteRule ^clients\.htm$ clients.php
RewriteRule ^certificate\.htm$ certificate.php
RewriteRule ^infrastructure\.htm$ infrastructure.php
RewriteRule ^error\.htm$ error.php
RewriteRule ^market-area\.htm$ market.php
RewriteRule ^blog\.htm$ blog.php
RewriteRule ^blog/([^/]*)\.htm$  blog-details.php?blog_name=$1&caa=$1 [L]
RewriteRule ^about-us\.htm$ about.php
RewriteRule ^shipping-information\.htm$ shipping-information.php
RewriteRule ^returns-and-exchange\.htm$ returns-and-exchange.php
RewriteRule ^terms-and-conditions\.htm$ terms-and-conditions.php
RewriteRule ^how-to-order\.htm$ how-to-order.php
RewriteRule ^packages\.htm$ packages.php
RewriteRule ^packages/([^/]*)\.htm$  packages-details.php [L]
RewriteRule ^faq\.htm$ faq.php
RewriteRule ^contact-us\.htm$ contact.php
RewriteRule ^privacy-policy\.htm$ privacy-policy.php
RewriteRule ^gallery\.htm$ gallery.php
RewriteRule ^testimonials\.htm$ testimonials.php
RewriteRule ^gallery-products\.htm$ gallery-products.php
RewriteRule ^sitemap.xml$ xml-sitemap.php [L]
RewriteRule ^sitemap\.htm$ html-sitemap.php
RewriteRule ^all-categories\.htm$ listing.php
RewriteRule \.htm$ category.php
RewriteRule ^([^/]*)/$ index_sub.php?cid=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.htm$  category_sub.php?pid=$2&ca=$1 [L]

