RewriteEngine on
RewriteBase /

RewriteCond %{HTTPS} =off
RewriteRule ^(.*) https://%{HTTP_HOST}%{REQUEST_URI} [L]

RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^(.*) https://%1/$1 [R=301,NE,L]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond $1 !^(index\.php|css|js|images|File|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

RewriteRule ^docs/.* - [L] 
RewriteRule ^gallery_prod/.* - [L]
RewriteRule ^gallery_photos/.* - [L]
RewriteRule ^gallery_blog/.* - [L]

<IfModule mod_headers.c>
  #Header set X-Content-Type-Options nosniff
</IfModule>

<FilesMatch "\.(pdf|gif|jpg|jpeg|png|ico|swf|css|js)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>

<FilesMatch "\.(js|css|php|jpg|swf|png|gif)$">
SetOutputFilter DEFLATE
</FilesMatch>

<Files .htaccess>
 order allow,deny
 deny from all
</Files>

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