<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  AddOutputFilterByType DEFLATE application/x-font
  AddOutputFilterByType DEFLATE application/x-font-opentype
  AddOutputFilterByType DEFLATE application/x-font-otf
  AddOutputFilterByType DEFLATE application/x-font-truetype
  AddOutputFilterByType DEFLATE application/x-font-ttf
  AddOutputFilterByType DEFLATE application/x-javascript
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE font/opentype
  AddOutputFilterByType DEFLATE font/otf
  AddOutputFilterByType DEFLATE font/ttf
  AddOutputFilterByType DEFLATE image/svg+xml
  AddOutputFilterByType DEFLATE image/x-icon
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml
 </IfModule>


<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType text/css "access plus 14 days"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType text/javascript "access plus 14 days"
ExpiresByType application/x-javascript "access plus 14 days"
ExpiresByType image/ico "access plus 14 days"
ExpiresByType image/jpg "access plus 14 days"
ExpiresByType image/jpeg "access plus 14 days"
ExpiresByType image/gif "access plus 14 days"
ExpiresByType image/png "access plus 14 days"
ExpiresByType image/svg+xml "access plus 1 month"
ExpiresByType text/html "access plus 14 days"
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"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/rss+xml "access plus 1 hour"
ExpiresByType application/atom+xml "access plus 1 hour"
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
</IfModule>
<IfModule mod_headers.c>
  <FilesMatch ".(js|css|xml|gz|html)$">
    Header append Vary: Accept-Encoding
  </FilesMatch>
</IfModule>

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)(\.gz)?$">
Header set Expires "Thu, 17 Apr 2023 20:00:00 GMT"
Header unset ETag
FileETag None
</FilesMatch>

#AddType application/x-httpd-php5 .htm .html .php  .php5 .php4 .php .php3 .php2 .phtml

RewriteEngine on

#download prevention code

RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]

RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]

RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]

RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]

RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]

RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]

RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]

RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]

RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]

RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]

RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]

RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR]

RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR]

RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]

RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]

RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]

RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]

RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]

RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} Indy\ Library [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR]

RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]

RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]

RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]

RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]

RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]

RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]

RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]

RewriteCond %{HTTP_USER_AGENT} uuuu7u^Navroad [OR]

RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]

RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]

RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR]

RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR]

RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR]

RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR]

RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR]

RewriteCond %{HTTP_USER_AGENT} ^RealDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]

RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]

RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]

RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]

RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]

RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]

RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]

RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]

RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]

RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]

RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]

RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]

RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]

RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]

RewriteCond %{HTTP_USER_AGENT} ^Zeus

RewriteRule ^.* - [F,L]

### WWW & HTTPS
# ensure www.
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# ensure https
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
ErrorDocument 404 https://www.canntechengg.com/
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/pki-validation/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteRule ^index\.htm$ index.php
RewriteRule ^photo-gallery\.htm$ photo-gallery.php
RewriteRule ^video-gallery\.htm$ video-gallery.php
RewriteRule ^search\.htm$ search.php
RewriteRule ^clients\.htm$ clients.php
RewriteRule ^certificate\.htm$ certificate.php
RewriteRule ^infrastructure\.htm$ infrastructure.php
RewriteRule ^error\.htm$ error.php
RewriteRule ^market-area\.htm$ market.php
RewriteRule ^blog\.htm$ blog.php
RewriteRule ^blog/([^/]*)\.htm$  blog-details.php?blog_name=$1&caa=$1 [L]
RewriteRule ^about-us\.htm$ about.php
RewriteRule ^idea-behind-canntech\.htm$ idea-behind-canntech.php
RewriteRule ^our-partners\.htm$ ourpartners.php
RewriteRule ^training\.htm$ training.php
RewriteRule ^careers\.htm$ career.php
RewriteRule ^manufacturing\.htm$ manufacturing.php
RewriteRule ^packages\.htm$ packages.php
RewriteRule ^packages/([^/]*)\.htm$  packages-details.php [L]

RewriteRule ^faq\.htm$ faq.php
RewriteRule ^contact-us\.htm$ contact.php
RewriteRule ^privacy-policy\.htm$ privacy-policy.php
RewriteRule ^gallery\.htm$ gallery.php
RewriteRule ^testimonials\.htm$ testimonials.php
RewriteRule ^gallery-products\.htm$ gallery-products.php
RewriteRule ^sitemap\.htm$ sitemap.php
RewriteRule ^projects\.htm$ projects.php
RewriteRule \.htm$ category.php
RewriteRule ^([^/]*)/$ index_sub.php?cid=$1 [L]
RewriteRule ^([^/]*)/([^/]*)\.htm$  category_sub.php?pid=$2&ca=$1 [L]

Redirect 301 /projects/ https://www.canntechengg.com/projects.htm
Redirect 301 /career/ https://www.canntechengg.com/careers.htm
Redirect 301 /bim/ https://www.canntechengg.com/bim-services.htm
Redirect 301 /structure/ https://www.canntechengg.com/structural-bim-modeling.htm
Redirect 301 /training/ https://www.canntechengg.com/training.htm
Redirect 301 /contact/ https://www.canntechengg.com/contact-us.htm
Redirect 301 /architecture/ https://www.canntechengg.com/architectural-bim-services.htm
Redirect 301 /about-us/ https://www.canntechengg.com/about-us.htm
Redirect 301 /about/ https://www.canntechengg.com/about-us.htm
Redirect 301 /idea-behind-canntech/ https://www.canntechengg.com/idea-behind-canntech.htm
Redirect 301 /services-2/ https://www.canntechengg.com/drawing-services.htm
Redirect 301 /structure.htm https://www.canntechengg.com/structural-bim-modeling.htm
Redirect 301 /drawing.htm https://www.canntechengg.com/drawing-services.htm
Redirect 301 /cork/structure.htm https://www.canntechengg.com/cork/structural-bim-modeling.htm

Redirect 301 /amsterdam/architecture.htm https://www.canntechengg.com/amsterdam/architectural-bim-services.htm
Redirect 301 /california/drawing.htm https://www.canntechengg.com/california/drawing-services.htm
Redirect 301 /lagos/mep.htm https://www.canntechengg.com/lagos/mep-designing.htm
Redirect 301 /catalonia/structure.htm https://www.canntechengg.com/catalonia/structural-bim-modeling.htm
Redirect 301 /muscat/bim.htm https://www.canntechengg.com/muscat/bim-coordination.htm
Redirect 301 /netherlands/architecture.htm https://www.canntechengg.com/netherlands/architectural-bim-services.htm
Redirect 301 /rotterdam/structure.htm https://www.canntechengg.com/rotterdam/structural-bim-modeling.htm
Redirect 301 /nigeria/structure.htm https://www.canntechengg.com/nigeria/structural-bim-modeling.htm
Redirect 301 /jeddah/drawing.htm https://www.canntechengg.com/jeddah/drawing-services.htm
Redirect 301 /amsterdam/drawing.htm https://www.canntechengg.com/amsterdam/drawing-services.htm
Redirect 301 /manchester/mep.htm https://www.canntechengg.com/manchester/mep-designing.htm
Redirect 301 /spain/mep.htm https://www.canntechengg.com/spain/revit-mep-services.htm
Redirect 301 /united-kingdom/drawing.htm https://www.canntechengg.com/uk-united-kingdom/drawing-services.htm
Redirect 301 /united-arab-emirates/bim.htm https://www.canntechengg.com/uae-united-arab-emirates/bim-coordination.htm
Redirect 301 /contact-us.htm?cid=contact https://www.canntechengg.com/contact-us.htm

Redirect 301 /united-arab-emirates/bim-services.htm https://www.canntechengg.com/uae-united-arab-emirates/bim-services.htm
Redirect 301 /united-arab-emirates/mep-engineering-services.htm https://www.canntechengg.com/uae-united-arab-emirates/mep-engineering-services.htm
Redirect 301 /united-arab-emirates/3d-bim-modeling.htm https://www.canntechengg.com/uae-united-arab-emirates/3d-bim-modeling.htm
Redirect 301 /united-arab-emirates/revit-mep-services.htm https://www.canntechengg.com/uae-united-arab-emirates/revit-mep-services.htm
Redirect 301 /united-arab-emirates/architectural-bim-services.htm https://www.canntechengg.com/uae-united-arab-emirates/architectural-bim-services.htm
 
Redirect 301 /united-kingdom/bim-services.htm https://www.canntechengg.com/uk-united-kingdom/bim-services.htm
Redirect 301 /united-kingdom/bim-modeling.htm https://www.canntechengg.com/uk-united-kingdom/bim-modeling.htm
Redirect 301 /united-kingdom/bim-modeling-solutions.htm https://www.canntechengg.com/uk-united-kingdom/bim-modeling-solutions.htm
 
Redirect 301 /united-states/mep-designing.htm https://www.canntechengg.com/usa-united-states/mep-designing.htm
Redirect 301 /united-states/revit-mep-services.htm https://www.canntechengg.com/usa-united-states/revit-mep-services.htm
Redirect 301 /united-states/3d-bim-modeling.htm https://www.canntechengg.com/usa-united-states/3d-bim-modeling.htm

# 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_flag display_errors On
   php_value max_execution_time 3000
   php_value max_input_time 3000
   php_value max_input_vars 5000
   php_value memory_limit 800M
   php_value post_max_size 800M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 100M
   php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
   php_flag display_errors On
   php_value max_execution_time 3000
   php_value max_input_time 3000
   php_value max_input_vars 5000
   php_value memory_limit 800M
   php_value post_max_size 800M
   php_value session.gc_maxlifetime 1440
   php_value session.save_path "/var/cpanel/php/sessions/ea-php72"
   php_value upload_max_filesize 100M
   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-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
