### LITESPEED_CACHE_START - Do not remove this line
<IfModule LiteSpeed>
CacheLookup 0ff
## 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
<IfModule mod_headers.c>
  <FilesMatch "\\.(js|css|html|htm|xhtml|php)$">
  AddDefaultCharset UTF-8
    SetOutputFilter DEFLATE
  </FilesMatch>

    <FilesMatch "\.(js|css|gz)$">
        Header append Vary Accept-Encoding
    </FilesMatch>
    <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>

<IfModule mod_expires.c>
  ExpiresActive on
 
# Perhaps better to whitelist expires rules? Perhaps.
  ExpiresDefault                          "access plus 6 months"
 
# cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5)
ExpiresByType text/cache-manifest       "access plus 0 seconds"
ExpiresByType application/x-web-app-manifest+json “access plus 0 seconds”


# Your document html
  ExpiresByType text/html                 "access plus 0 seconds"
   
# Data
  ExpiresByType text/xml                  "access plus 0 seconds"
  ExpiresByType application/xml           "access plus 0 seconds"
  ExpiresByType application/json          "access plus 0 seconds"
 
# RSS feed
  ExpiresByType application/rss+xml       "access plus 1 hour"
 ExpiresByType application/atom+xml       “access plus 1 hour”
# Favicon (cannot be renamed)
  ExpiresByType image/x-icon              "access plus 1 week"
  
# Media: images, video, audio
  ExpiresByType image/gif                 "access plus 1 month"
  ExpiresByType image/png                 "access plus 1 month"
  ExpiresByType image/jpg                 "access plus 1 month"
  ExpiresByType image/jpeg                "access plus 1 month"
  ExpiresByType video/ogg                 "access plus 1 month"
  ExpiresByType audio/ogg                 "access plus 1 month"
  ExpiresByType video/mp4                 "access plus 1 month"
  ExpiresByType video/webm                "access plus 1 month"
   
# HTC files  (css3pie)
  ExpiresByType text/x-component          "access plus 0 seconds"
   
# Webfonts
  ExpiresByType font/truetype             "access plus 1 month"
  ExpiresByType font/opentype             "access plus 1 month"
  ExpiresByType application/x-font-woff   "access plus 1 month"
  ExpiresByType image/svg+xml             "access plus 1 month"
  ExpiresByType font/ttf "access plus 1 year"
  ExpiresByType font/otf "access plus 1 year"
  ExpiresByType font/woff "access plus 1 year"
  ExpiresByType font/woff2 "access plus 1 year"
  ExpiresByType application/vnd.ms-fontobject "access plus year"
     
# CSS and JavaScript
  ExpiresByType text/css                  "access plus 1 year"
  ExpiresByType application/javascript    "access plus 1 year"
  ExpiresByType text/javascript           "access plus 1 year"
  ExpiresByType application/x-javascript “access plus 1 year”
  
   </IfModule>
  # set conenection keep-alive
<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.

# For any support issues please visit: http://www.opencart.com
IfModule mod_rewrite.c>
Options +FollowSymlinks
 RewriteEngine On
 # Options +SymLinksIfOwnerMatch
  # RewriteBase /
  # RewriteOptions <options>
</IfModule>

<IfModule mod_headers.c>
Header unset ETag
FileETag None
</ifModule>


# 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>

# SEO URL Settings

RewriteEngine on

RewriteCond %{HTTPS}::%{HTTP_HOST} ^off::(?:www\.)?(.+)$
RewriteRule ^ https://www.%1%{REQUEST_URI} [NE,L,R]

<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>

<IfModule mod_deflate.c>
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" \
      "application/javascript" \
      "application/json" \
      "application/ld+json" \
      "application/manifest+json" \
      "application/rdf+xml" \
      "application/rss+xml" \
      "application/schema+json" \
      "application/geo+json" \
      "application/vnd.ms-fontobject" \
      "application/wasm" \
      "application/x-font-ttf" \
      "application/x-javascript" \
      "application/x-web-app-manifest+json" \
      "application/xhtml+xml" \
      "application/xml" \
      "font/eot" \
      "font/opentype" \
      "font/otf" \
      "font/ttf" \
      "image/bmp" \
      "image/svg+xml" \
      "image/vnd.microsoft.icon" \
      "text/cache-manifest" \
      "text/calendar" \
      "text/css" \
      "text/html" \
      "text/javascript" \
      "text/plain" \
      "text/markdown" \
      "text/vcard" \
      "text/vnd.rim.location.xloc" \
      "text/vtt" \
      "text/x-component" \
      "text/x-cross-domain-policy" \
      "text/xml"
  </IfModule>
</IfModule>


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

RewriteBase /
RewriteRule ^sitemap1.xml$ index.php?route=extension/feed/d_google_sitemap [L]
#RewriteRule ^sitemap.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 ^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>

deny from 157.55.39.200


# 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|jpe?g|js|css)$ - [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

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