##
# @package    Joomla
# @copyright  (C) 2005 Open Source Matters, Inc. <https://www.joomla.org>
# @license    GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# It is required for the use of Apache mod_rewrite, but it may have already been set by
# your server administrator in a way that disallows changing it in this .htaccess file.
# If using it causes your site to produce an error, comment it out (add # to the
# beginning of the line), reload your site in your browser and test your sef urls. If
# they work, then it has been set by your server administrator and you do not need to
# set it here.
##

## MISSING CSS OR JAVASCRIPT ERRORS
#
# If your site looks strange after enabling this file, then your server is probably already
# gzipping css and js files and you should comment out the GZIP section of this file.
##

## OPENLITESPEED
#
# If you are using an OpenLiteSpeed web server then any changes made to this file will
# not take effect until you have restarted the web server.
##
## Can be commented out if causes errors, see notes above.
Options +FollowSymlinks
Options -Indexes

## No directory listings
<IfModule mod_autoindex.c>
	IndexIgnore *
</IfModule>

## Suppress mime type detection in browsers for unknown types
<IfModule mod_headers.c>
	Header always set X-Content-Type-Options "nosniff"
</IfModule>

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site then comment out the operations listed 
# below by adding a # to the beginning of the line.
# This attempts to block the most common type of exploit `attempts` on Joomla!
#
# Block any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block any script that includes a <script> tag in URL.
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
# Block any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block any script trying to modify a _REQUEST variable via URL.
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Return 403 Forbidden header and show the content of the root home page
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
RewriteRule .* index.php [F]
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect (or vice versa), place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the [R=301,L] flags.
#
## End - Custom redirects

##
# Uncomment the following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root).
##

 RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/cpanel-dcv/[0-9a-zA-Z_-]+$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/(?:\ Ballot169)?
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Sectigo\ DCV)?$
RewriteRule .* /index.php [L]

## Protect against certain cross-origin requests. More information can be found here:
## https://developer.mozilla.org/en-US/docs/Web/HTTP/Cross-Origin_Resource_Policy_(CORP)
## https://web.dev/why-coop-coep/
#<IfModule mod_headers.c>
#	Header always set Cross-Origin-Resource-Policy "same-origin"
#	Header always set Cross-Origin-Embedder-Policy "require-corp"
#</IfModule>

## Disable inline JavaScript when directly opening SVG files or embedding them with the object-tag
<FilesMatch "\.svg$">
  <IfModule mod_headers.c>
    Header always set Content-Security-Policy "script-src 'none'"
  </IfModule>
</FilesMatch>



## These directives are only enabled if the Apache mod_rewrite module is disabled
<IfModule !mod_rewrite.c>
	<IfModule mod_alias.c>
		# When Apache mod_rewrite is not available, we instruct a temporary redirect
		# of the start page to the front controller explicitly so that the website
		# and the generated links can still be used.
		RedirectMatch 302 ^/$ /index.php/
		# RedirectTemp cannot be used instead
	</IfModule>
</IfModule>

# GZIP
# These directives are only enabled if the Apache mod_headers module is enabled.
# This section will check if a .gz file exists and if so will stream it
#     directly or fallback to gzip any asset on the fly
# If your site starts to look strange after enabling this file, and you see
#     ERR_CONTENT_DECODING_FAILED in your browser console network tab,
#     then your server is already gzipping css and js files and you don't need this
#     block enabled in your .htaccess
<IfModule mod_headers.c>
	# Serve gzip compressed CSS files if they exist
	# and the client accepts gzip.
# 	RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# 	RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# 	RewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]

# 	# Serve gzip compressed JS files if they exist
# 	# and the client accepts gzip.
# 	RewriteCond "%{HTTP:Accept-encoding}" "gzip"
# 	RewriteCond "%{REQUEST_FILENAME}\.gz" -s
# 	RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]

# 	# Serve correct content types, and prevent mod_deflate double gzip.
# 	RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
# 	RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]

	<FilesMatch "(\.js\.gz|\.css\.gz)$">
		# Serve correct encoding type.
		Header set Content-Encoding gzip

		# Force proxies to cache gzipped &
		# non-gzipped css/js files separately.
		Header append Vary Accept-Encoding
	</FilesMatch>
</IfModule>

#april06
Redirect 301 /ptac-control/t631w-2 https://www.pro1iaq.com/t631w-2 
Redirect 301 /non-programmable/t501m https://www.pro1iaq.com/t501m
Redirect 301 /non-programmable/t501ml2 https://www.pro1iaq.com/t501ml2
Redirect 301 /non-programmable/t501ml4 https://www.pro1iaq.com/t501ml4
Redirect 301 /non-programmable/t-601 https://www.pro1iaq.com/t601-2  
Redirect 301 /non-programmable/t601-2 https://www.pro1iaq.com/t601-2
Redirect 301 /non-programmable/t621-2 https://www.pro1iaq.com/t621-2
Redirect 301 /non-programmable/t701 https://www.pro1iaq.com/t701
Redirect 301 /non-programmable/t701i https://www.pro1iaq.com/t701i
Redirect 301 /non-programmable/t721 https://www.pro1iaq.com/t721
Redirect 301 /non-programmable/t771 https://www.pro1iaq.com/t771
Redirect 301 /non-programmable/t801 https://www.pro1iaq.com/t801
Redirect 301 /non-programmable/t631w-2 https://www.pro1iaq.com/t631w-2
Redirect 301 /non-programmable/t631-2 https://www.pro1iaq.com/t631-2
Redirect 301 /5-1-1/t725 https://www.pro1iaq.com/t725
Redirect 301 /5-1-1/t755 https://www.pro1iaq.com/t755
Redirect 301 /5-1-1/t755h https://www.pro1iaq.com/t755h
Redirect 301 /5-1-1/t755s https://www.pro1iaq.com/t755s
Redirect 301 /5-1-1/t705 https://www.pro1iaq.com/t705
Redirect 301 /selectable-7d-5-1-1-np/t705 https://www.pro1iaq.com/t705
Redirect 301 /selectable-7d-5-1-1-np/t715 https://www.pro1iaq.com/t715
Redirect 301 /selectable-7d-5-1-1-np/t725 https://www.pro1iaq.com/t725
Redirect 301 /selectable-7d-5-1-1-np/t755 https://www.pro1iaq.com/t755
Redirect 301 /selectable-7d-5-1-1-np/t755h https://www.pro1iaq.com/t755h
Redirect 301 /selectable-7d-5-1-1-np/t755s https://www.pro1iaq.com/t755s
Redirect 301 /selectable-7d-5-1-1-np/t805  https://www.pro1iaq.com/t805
Redirect 301 /selectable-7d-5-1-1-np/t855 https://www.pro1iaq.com/t855
Redirect 301 /selectable-7d-5-1-1-np/t855s https://www.pro1iaq.com/t855s
Redirect 301 /selectable-7d-5-1-1-np/t905 https://www.pro1iaq.com/t905
Redirect 301 /selectable-7d-5-1-1-np/t955 https://www.pro1iaq.com/t955
Redirect 301 /selectable-7d-5-1-1-np/t955s https://www.pro1iaq.com/t955s
Redirect 301 /selectable-7d-5-1-1-np/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /selectable-7d-5-1-1-np/z955w https://www.pro1iaq.com/z955w
Redirect 301 /4-heat-2-cool-universal/t855i https://www.pro1iaq.com/t855i
Redirect 301 /3heat-2cool-universal/t755s https://www.pro1iaq.com/t755s
Redirect 301 /3heat-2cool-universal/t755h https://www.pro1iaq.com/t755h
Redirect 301 /3heat-2cool-universal/t855 https://www.pro1iaq.com/t855
Redirect 301 /3heat-2cool-universal/t855s https://www.pro1iaq.com/t855s
Redirect 301 /3heat-2cool-universal/t955 https://www.pro1iaq.com/t955
Redirect 301 /3heat-2cool-universal/t955s https://www.pro1iaq.com/t955s
Redirect 301 /3heat-2cool-universal/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /3heat-2cool-universal/z995w https://www.pro1iaq.com/z955w
Redirect 301 /1-heat-1-cool/t601 https://www.pro1iaq.com/t601-2
Redirect 301 /1-heat-1-cool/t601-2 https://www.pro1iaq.com/t601-2
Redirect 301 /1-heat-1-cool/t605-2 https://www.pro1iaq.com/t605-2
Redirect 301 /1-heat-1-cool/t631w-2 https://www.pro1iaq.com/t631w-2
Redirect 301 /1-heat-1-cool/t701 https://www.pro1iaq.com/t701
Redirect 301 /1-heat-1-cool/t701i https://www.pro1iaq.com/t701i
Redirect 301 /1-heat-1-cool/t705 https://www.pro1iaq.com/t705
Redirect 301 /1-heat-1-cool/t801 https://www.pro1iaq.com/t801
Redirect 301 /1-heat-1-cool/t905 https://www.pro1iaq.com/t905
Redirect 301 /1-heat-1-cool/t805 https://www.pro1iaq.com/t805
Redirect 301 /1-heat-1-cool/t631-2 https://www.pro1iaq.com/t631-2
Redirect 301 /2-heat-1-cool-heat-pump/t621-2 https://www.pro1iaq.com/t621-2
Redirect 301 /2-heat-1-cool-heat-pump/t721 https://www.pro1iaq.com/t721
Redirect 301 /2-heat-1-cool-heat-pump/t725 https://www.pro1iaq.com/t725
Redirect 301 /2-heat-1-cool-heat-pump/t631-2 https://www.pro1iaq.com/t631-2
Redirect 301 /2-heat-1-cool-heat-pump/t631w-2 https://www.pro1iaq.com/t631w-2
Redirect 301 /2-heat-2-cool-conventional/t715 https://www.pro1iaq.com/t715
Redirect 301 /heat-only/t501m https://www.pro1iaq.com/t501m
Redirect 301 /heat-only/t501ml2 https://www.pro1iaq.com/t501ml2
Redirect 301 /heat-only/t501ml4 https://www.pro1iaq.com/t501ml4
Redirect 301 /wi-fi/t701i http://www.pro1iaq.com/t701i
Redirect 301 /wi-fi/t855i https://www.pro1iaq.com/t855i
Redirect 301 /humidity-control/t755h https://www.pro1iaq.com/t755h
Redirect 301 /humidity-control/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /indoor-sensors/t755s https://www.pro1iaq.com/t755s
Redirect 301 /indoor-sensors/t855s https://www.pro1iaq.com/t855s
Redirect 301 /indoor-sensors/t955s https://www.pro1iaq.com/t955s
Redirect 301 /indoor-sensors/z955w https://www.pro1iaq.com/z955w
Redirect 301 /indoor-sensors/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /outdoor-temperature-sensors/t955wh-r251-r250w https://www.pro1iaq.com/t955wh
Redirect 301 /outdoor-temperature-sensors/t755s-r250s https://www.pro1iaq.com/t755s
Redirect 301 /outdoor-temperature-sensors/t855s-r250s-2 https://www.pro1iaq.com/t855s
Redirect 301 /outdoor-temperature-sensors/t955s https://www.pro1iaq.com/t955s
Redirect 301 /outdoor-temperature-sensors/z955w https://www.pro1iaq.com/z955w
Redirect 301 /hydronic-slab-sensor/t755s-r250s https://www.pro1iaq.com/t755s
Redirect 301 /hydronic-slab-sensor/t855s-r250s-2 https://www.pro1iaq.com/t855s
Redirect 301 /hydronic-slab-sensor/t955s https://www.pro1iaq.com/t955s
Redirect 301 /ptac-control/t631-2 https://www.pro1iaq.com/t631-2
Redirect 301 /wireless-products/t631w-2 https://www.pro1iaq.com/t631w-2
Redirect 301 /wireless-products/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /outdoor-temperature-sensors/t955wh-r251-r250w https://www.pro1iaq.com/t955wh
Redirect 301 /outdoor-temperature-sensors/t755s-r250s https://www.pro1iaq.com/t755s
Redirect 301 /outdoor-temperature-sensors/t855s-r250s-2 https://www.pro1iaq.com/t855s
Redirect 301 /outdoor-temperature-sensors/t955s https://www.pro1iaq.com/t955s
Redirect 301 /outdoor-temperature-sensors/z955w https://www.pro1iaq.com/z955w
Redirect 301 /hydronic-slab-sensor/t755s-r250s https://www.pro1iaq.com/t755s
Redirect 301 /hydronic-slab-sensor/t855s-r250s-2 https://www.pro1iaq.com/t855s
Redirect 301 /outdoor-temperature-sensors/t955s https://www.pro1iaq.com/t955s
Redirect 301 /outdoor-temperature-sensors/z955w https://www.pro1iaq.com/z955w
Redirect 301 /hydronic-slab-sensor/t755s-r250s https://www.pro1iaq.com/t755s
Redirect 301 /hydronic-slab-sensor/t855s-r250s-2 https://www.pro1iaq.com/t855s
Redirect 301 /hydronic-slab-sensor/t955s https://www.pro1iaq.com/t955s
Redirect 301 /ptac-control/t631-2 https://www.pro1iaq.com/t631-2
Redirect 301 /wireless-products/t631w-2 https://www.pro1iaq.com/t631w-2
Redirect 301 /wireless-products/t955wh https://www.pro1iaq.com/t955wh
Redirect 301 /wireless-products/ww160w https://www.pro1iaq.com/ww160w
Redirect 301 /wireless-products/w150w https://www.pro1iaq.com/w150w
Redirect 301 /wireless-products/z955w-rz251w-rz250w https://www.pro1iaq.com/z955w
Redirect 301 /24-v-mechanical/t501m https://www.pro1iaq.com/t501m
Redirect 301 /line-voltage/t501ml2 https://www.pro1iaq.com/t501ml2
Redirect 301 /line-voltage/t501ml4 https://www.pro1iaq.com/t501ml4
Redirect 301 /help https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /smart-grid https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /wifi-compatibility https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /help/connectivity https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /products/wifi-thermostat/wifi-help/connectivity https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /app-help https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /installation https://www.pro1iaq.com/products/wifi-thermostat/wifi-help
Redirect 301 /wifi-videos https://www.pro1iaq.com/professional/videos
Redirect 301 /index.php/videos https://www.pro1iaq.com/professional/videos
Redirect 301 /videos https://www.pro1iaq.com/professional/videos
Redirect 301 /variety https://www.pro1iaq.com/products/thermostats
Redirect 301 /simplicity https://www.pro1iaq.com/t701
Redirect 301 /efficiency https://www.pro1iaq.com/home-owner/efficiency
Redirect 301 /faq-frequently-asked-questions https://www.pro1iaq.com/home-owner/f-a-q
Redirect 301 /login-downloads https://www.pro1iaq.com/products/wifi-thermostat
#Redirect 301 /android-commissioning-steps?tmpl=component&print=1&page= https://www.pro1iaq.com/products/wifi-thermostat
Redirect 301 /manuals-resources https://www.pro1iaq.com/professional/technician-manuals
Redirect 301 /art-work https://www.pro1iaq.com/professional/artwork
Redirect 301 /resources-private-label-program https://www.pro1iaq.com/professional/technician-private-label-program
Redirect 301 /resources-loyalty-points-program https://www.pro1iaq.com/professional/loyalty-points-program
Redirect 301 /education-and-training https://www.pro1iaq.com/about-pro1/contact-us
Redirect 301 /resources-faq https://www.pro1iaq.com/home-owner/f-a-q
Redirect 301 /wireless-zoning https://www.pro1iaq.com/products/wireless-zoning
Redirect 301 /wireless-eire/ww160w https://www.pro1iaq.com/ww160w
Redirect 301 /junction-box/e219 https://www.pro1iaq.com/e219
Redirect 301 /air-cleaners-and-filters/air-cleaners-and-filters https://www.pro1iaq.com/products/accessories
Redirect 301 /private-label-program https://www.pro1iaq.com/professional/technician-private-label-program
Redirect 301 /pro1-loyalty-program https://www.pro1iaq.com/professional/loyalty-points-program
Redirect 301 /manuals https://www.pro1iaq.com/professional/technician-manuals
Redirect 301 /artwork https://www.pro1iaq.com/professional/artwork
Redirect 301 /privatelabelapp https://www.pro1iaq.com/products/wifi-thermostat
Redirect 301 /android_privatelabel https://www.pro1iaq.com/products/wifi-thermostat
Redirect 301 /beta-team https://www.pro1iaq.com/sandbox/products/wifi-thermostat/wifi-help
Redirect 301 /warranty https://rma.pro1iaq.com/homeowner-warranty-registration.php
Redirect 301 /web-app https://www.pro1iaq.com/products/wifi-thermostat
#end -#end - april06 april06
#
## End - Joomla! core SEF Section.

# 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 php8_module>
   php_flag display_errors Off
   php_value max_execution_time 900
   php_value max_input_time 900
   php_value max_input_vars 10000
   php_value memory_limit 512M
   php_value post_max_size 512M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_value upload_max_filesize 50M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors Off
   php_value max_execution_time 900
   php_value max_input_time 900
   php_value max_input_vars 10000
   php_value memory_limit 512M
   php_value post_max_size 512M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php81"
   php_value upload_max_filesize 50M
   php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit

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