ErrorDocument 404 https://www.www.tmtgroup.cc/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, public"
</FilesMatch>

Options +FollowSymlinks
Options -Indexes
RewriteEngine on 

<FilesMatch ".(log|db|sql)$">
 Order allow,deny
 Deny from all
</FilesMatch>
 
RewriteCond %{HTTP_HOST} ^de.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/de%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^es.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/es%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^pt.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/pt%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^jp.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/jp%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^kr.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/kr%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^ae.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/ae%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^it.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc/it%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^en.www.tmtgroup.cc [NC]
RewriteRule .? https://www.www.tmtgroup.cc%{REQUEST_URI} [R=301,L] 

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

RewriteCond %{HTTP_HOST} ^www.www.tmtgroup.cc$
RewriteRule ^index.html$ https://www.www.tmtgroup.cc/ [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]

 
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
