ErrorDocument 404 http://www.sjzchempharm.com/index.html 

<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf|css|js|mp4|woff|eot|otf|fon|font|ttf|ttc|woff2)$">
Header set Cache-Control "max-age=864000"
</FilesMatch>

Options +FollowSymlinks

Options -Indexes

RewriteEngine on 
RewriteRule ^ls_admin\backupdb - [F,L]
 
RewriteCond %{HTTP_HOST} ^ger.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/ger%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^es.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/es%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^pt.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/pt%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^jp.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/jp%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^kr.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/kr%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^ae.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/ae%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^it.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com/it%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^en.sjzchempharm.com [NC]
RewriteRule .? http://www.sjzchempharm.com%{REQUEST_URI} [R=301,L] 

RewriteCond %{HTTP_HOST} ^([a-z.]+)?sjzchempharm.com$ [NC] 
RewriteCond %{HTTP_HOST} !^www. [NC] 
RewriteRule .? https://www.sjzchempharm.com%{REQUEST_URI} [R=301,L] 

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]