
RewriteOptions inherit
ErrorDocument 404 https://m.cstpharm.com/index.html
<FilesMatch ".(flv|gif|jpg|jpeg|png|webp|jp2|mp3|wmv|avi|wav|ico|swf|css|js|mp4|woff|eot|otf|fon|font|ttf|ttc|woff2)$">
Header set Cache-Control "max-age=864000, public"
</FilesMatch>

Options +FollowSymlinks
Options -Indexes
RewriteEngine on 

<FilesMatch ".(log|db|sql)$">
 Order allow,deny
 Deny from all
</FilesMatch>

RewriteRule ^search.html$ search.php 
RewriteRule ^search_([0-9]+)_([0-9]+)_(.*).html$ search.php?page=$1&page2=$2&keywords=$3 [QSA,L] 
RewriteRule ^search_(.*).html$ search.php?keywords=$1

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]

AddHandler application/x-httpd-ea-php56___lsphp .php .php5 .phtml

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