### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup 0ff
ExpiresActive Off
## Uncomment the following directives if you has a separate mobile view
##RewriteEngine On
##RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC] 
##RewriteRule .* - [E=Cache-Control:vary=isMobile]
## Uncomment the following directives if you has a separate Safari browser view
##RewriteCond %{HTTP_USER_AGENT} Safari
##RewriteCond %{HTTP_USER_AGENT} !Chrome
##RewriteCond %{HTTP_USER_AGENT} !CriOS
##RewriteRule .* - [E=Cache-Control:vary=isSafari]
##RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC]
##RewriteCond %{HTTP_USER_AGENT} Safari
##RewriteCond %{HTTP_USER_AGENT} !Chrome
##RewriteCond %{HTTP_USER_AGENT} !CriOS
##RewriteRule .* - [E=Cache-Control:vary=isMobileSafari]
##RewriteCond %{HTTP_USER_AGENT} "iPhone|iPod|BlackBerry|Palm|Googlebot-Mobile|Mobile|mobile|mobi|Windows Mobile|Safari Mobile|Android|Opera Mini" [NC] 
##RewriteRule .* - [E=Cache-Control:vary=isMobile]
##RewriteCond %{HTTP_USER_AGENT} Bot
##RewriteRule .* - [E=Cache-Control:vary=isMobileBot]
</IfModule>
### LITESPEED_CACHE_END
# CARBONSTART
# CARBONEND
### Turn E-tags off
### Turn E-tags off
<IfModule mod_headers.c>
        Header unset ETag
</IfModule>
FileETag None

# BEGIN Cache-Control Headers
<ifModule mod_headers.c>
 <filesMatch "\.(ico|jpe?g|png|gif|swf)$">
 Header set Cache-Control "public"
 </filesMatch>
 <filesMatch "\.(css)$">
 Header set Cache-Control "public"
 </filesMatch>
 <filesMatch "\.(js)$">
 Header set Cache-Control "private"
 </filesMatch>
 <filesMatch "\.(x?html?|php)$">
 Header set Cache-Control "private, must-revalidate"
 </filesMatch>
</ifModule>
# END Cache-Control Headers

# Les expires headers
<IfModule mod_expires.c>
# Enable expirations
ExpiresActive On
# Default directive
ExpiresDefault "access plus 1 month"
# My favicon
ExpiresByType image/x-icon "access plus 1 year"
# Images
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/webp "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 month"
# Javascript
ExpiresByType application/javascript "access plus 1 year"
</IfModule>

# Disable server signature (Security)
ServerSignature Off
Header unset Etag
FileETag none

# Increase cookie security (Security)
<IfModule php5_module>
    php_value session.cookie_httponly true
</IfModule>

# HTTP Response Headers
Header always append X-Frame-Options SAMEORIGIN
Header set X-XSS-Protection 1;mode=block
Header set X-Content-Type-Options nosniff

# Webfont access
<IfModule mod_headers.c>
    <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
        Header set Access-Control-Allow-Origin "*"
    </FilesMatch>
</IfModule>

# Force latest IE rendering engine
<IfModule mod_headers.c>
    Header set X-UA-Compatible "IE=Edge,chrome=1"
        # mod_headers can't match by content-type, but we don't want to this header on everything
        <FilesMatch "\.(js|css|gif|png|jpeg|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
            Header unset X-UA-Compatible
        </FilesMatch>
</IfModule>

# Instructs the proxies to cache two versions of the resource: one compressed, and one uncompressed.
<IfModule mod_headers.c>
  <FilesMatch "\.(js|css|xml|gz)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
</IfModule>

# CORS-enabled images (@crossorigin)
<IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
        <FilesMatch "\.(gif|png|jpeg|svg|svgz|ico|webp)$">
            SetEnvIf Origin ":" IS_CORS
            Header set Access-Control-Allow-Origin "*" env=IS_CORS
        </FilesMatch>
    </IfModule>
</IfModule>
  
 </IfModule>
  <IfModule mod_headers.c>
    Header set Connection keep-alive
</IfModule>
# 1.To use URL Alias you need to be running apache with mod_rewrite enabled.

# 2. In your opencart directory rename htaccess.txt to .htaccess.


# Prevent Directoy listing
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
 Require all denied
 
## For apache 2.2 and older, replace "Require all denied" with these two lines :
# Order deny,allow
# Deny from all
</FilesMatch>

# CASE SENSITIVE METHOD
<Files .htaccess>
	Order allow,deny
	Deny from all
</Files>
# protect .htaccess
<Files ~ "^.*\.([Hh][Tt][Aa])">
	Order allow,deny
	Deny from all
	Satisfy all
</Files>

# protect .htpasswd
<Files ~ "^.*\.([Hh][Tt][Pp])">
	Order allow,deny
	Deny from all
	Satisfy all
</Files>

# protect .htaccess and .htpasswd
<Files ~ "^.*\.([Hh][Tt])">
	Order allow,deny
	Deny from all
	Satisfy all
</Files>
#The Meaning Of SSI
<!-- include virtual="header.shtml" -->
#Enabling SSI Over The .html Files
AddHandler server-parsed .html
# BEGIN GZIP COMPRESSION
<IfModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
# END GZIP COMPRESSION

<IfModule mod_deflate.c>
# Insert filters / compress text, html, javascript, css, xml:
# mod_deflate can be used for Apache v2 and later and is the recommended GZip mechanism to use
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/vtt 
AddOutputFilterByType DEFLATE text/x-component
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/js
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
AddOutputFilterByType DEFLATE application/atom+xml 
AddOutputFilterByType DEFLATE application/json
AddOutputFilterByType DEFLATE application/ld+json 
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject 
AddOutputFilterByType DEFLATE application/x-font-ttf 
AddOutputFilterByType DEFLATE application/font-sfnt
AddOutputFilterByType DEFLATE application/x-web-app-manifest+json 
AddOutputFilterByType DEFLATE font/opentype 
AddOutputFilterByType DEFLATE font/otf
AddOutputFilterByType DEFLATE font/ttf
AddOutputFilterByType DEFLATE font/sfnt
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE image/x-icon 

# 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>
# For any support issues please visit: http://www.opencart.com
Options +FollowSymlinks

# SEO URL Settings
RewriteEngine On

# If your opencart installation does not run on the main web folder make sure you folder it does run in ie. / becomes /shop/

RewriteBase /
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^mitrascope\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.mitrascope\.com$
RewriteRule .* https://mitrascope.com%{REQUEST_URI} [R=301,L]

RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^www\.mitrascope\.com$
RewriteRule .* https://mitrascope.com%{REQUEST_URI} [R=301,L]
RewriteBase /
#RewriteRule ^sitemap1.xml$ index.php?route=extension/feed/d_google_sitemap [L]
RewriteRule ^sitemap2.xml$ index.php?route=extension/feed/google_sitemap [L]
RewriteRule  ^sitemap.xml$  index.php?route=extension/feed/licorne_google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=extension/feed/google_base [L]
RewriteRule ^googlebase1.xml$ index.php?route=extension/feed/xmlfeed [L]
RewriteRule ^googlebase2.xml$ index.php?route=extension/feed/feed [L]
RewriteRule ^system/storage/(.*) index.php?route=error/not_found [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

### Additional Settings that may need to be enabled for some servers
### Uncomment the commands by removing the # sign in front of it.
### If you get an "Internal Server Error 500" after enabling any of the following settings, restore the # as this means your host doesn't allow that.

# 1. If your cart only allows you to add one item at a time, it is possible register_globals is on. This may work to disable it:
# php_flag register_globals off

# 2. If your cart has magic quotes enabled, This may work to disable it:
# php_flag magic_quotes_gpc Off

# 3. Set max upload file size. Most hosts will limit this and not allow it to be overridden but you can try
# php_value upload_max_filesize 999M

# 4. set max post size. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value post_max_size 999M

# 5. set max time script can take. uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_execution_time 200

# 6. set max time for input to be recieved. Uncomment this line if you have a lot of product options or are getting errors where forms are not saving all fields
# php_value max_input_time 200

# 7. disable open_basedir limitations
# php_admin_value open_basedir none

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "1"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors Off
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "1"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors Off
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit



# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit

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

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_value allow_url_fopen = On
   php_value allow_url_fopen = On
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit

# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit
RewriteCond %{HTTP_REFERER} !^http://mitrascope.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://mitrascope.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mitrascope.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.mitrascope.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://mitrascope.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://mitrascope.com$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.mitrascope.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^https://www.mitrascope.com$      [NC]
RewriteRule .*\.(jpg|gif|png|bmp|jepg)$ - [F,NC]




# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php7_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
<IfModule lsapi_module>
   php_value default_charset "UTF-8"
   php_value memory_limit 128M
   php_value max_execution_time 36000
   php_value upload_max_filesize 999M
   php_value mysql.connect_timeout 20
   php_flag session.auto_start Off
   php_flag session.use_only_cookies On
   php_flag session.use_cookies On
   php_flag session.use_trans_sid Off
   php_value session.cookie_httponly "On;"
   php_value session.gc_maxlifetime 3600
   php_flag display_errors On
   php_value error_reporting E_ALL
   php_flag log_errors On
   php_value max_input_time 60
   php_value max_input_vars 1000
   php_value post_max_size 8M
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_flag zlib.output_compression On
</IfModule>
# END cPanel-generated php ini directives, do not edit


# SiteGuarding Firewall Block
<Files ".user.ini">
<IfModule mod_authz_core.c>
	Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
	Order deny,allow
	Deny from all
</IfModule>
</Files>

# END SiteGuarding Firewall Block
deny from 114.122.0.1
deny from 114.122.0.2/31
deny from 114.122.0.4/30
deny from 114.122.0.8/29
deny from 114.122.0.16/28
deny from 114.122.0.32/27
deny from 114.122.0.64/28
deny from 114.122.0.80/29
deny from 114.122.0.88/31
deny from 114.122.0.90
deny from 114.122.0.32/29
deny from 114.122.0.40

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