File: /home/ser65kty/gamium.serversmw.com/public/.htaccess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
<IfModule mod_expires.c>
# Enable expiration control
ExpiresActive On
# No caching for specific resource types
## -- Application cache manifest
ExpiresByType text/cache-manifest "now"
## -- XML and JSON
ExpiresByType application/json "now plus 2 year"
ExpiresByType application/xml "now"
ExpiresByType text/xml "now"
## RSS and Atom feeds: 1 hour (hardcoded)
ExpiresByType application/atom+xml "now plus 1 hour"
ExpiresByType application/rss+xml "now plus 1 hour"
# CSS and JS expiration: 1 week after request
ExpiresByType text/css "now plus 2 year"
ExpiresByType text/javascript "now plus 2 year"
ExpiresByType application/javascript "now plus 2 year"
ExpiresByType application/ld+json "now plus 2 year"
ExpiresByType application/x-javascript "now plus 2 year"
# Image files expiration: 2 year after request
ExpiresByType application/ico "now plus 2 year"
ExpiresByType application/smil "now plus 2 year"
ExpiresByType application/vnd.wap.wbxml "now plus 2 year"
ExpiresByType image/bmp "now plus 2 year"
ExpiresByType image/gif "now plus 2 year"
ExpiresByType image/ico "now plus 2 year"
ExpiresByType image/icon "now plus 2 year"
ExpiresByType image/jp2 "now plus 2 year"
ExpiresByType image/jpeg "now plus 2 year"
ExpiresByType image/jpg "now plus 2 year"
ExpiresByType image/pipeg "now plus 2 year"
ExpiresByType image/png "now plus 2 year"
ExpiresByType image/svg+xml "now plus 2 year"
ExpiresByType image/tiff "now plus 2 year"
ExpiresByType image/vnd.microsoft.icon "now plus 2 year"
ExpiresByType image/vnd.wap.wbmp "now plus 2 year"
ExpiresByType image/webp "now plus 2 year"
ExpiresByType image/x-icon "now plus 2 year"
ExpiresByType text/ico "now plus 2 year"
# Font files expiration: 1 week after request
ExpiresByType application/font-woff "now plus 2 year"
ExpiresByType application/font-woff2 "now plus 2 year"
ExpiresByType application/vnd.ms-fontobject "now plus 2 year"
ExpiresByType application/x-font-opentype "now plus 2 year"
ExpiresByType application/x-font-ttf "now plus 2 year"
ExpiresByType application/x-font-woff "now plus 2 year"
ExpiresByType font/opentype "now plus 2 year"
ExpiresByType font/otf "now plus 2 year"
ExpiresByType font/ttf "now plus 2 year"
ExpiresByType font/woff "now plus 2 year"
ExpiresByType font/woff2 "now plus 2 year"
# Audio files expiration: 2 year after request
ExpiresByType application/ogg "now plus 2 year"
ExpiresByType audio/3gpp "now plus 2 year"
ExpiresByType audio/3gpp2 "now plus 2 year"
ExpiresByType audio/aac "now plus 2 year"
ExpiresByType audio/basic "now plus 2 year"
ExpiresByType audio/mid "now plus 2 year"
ExpiresByType audio/midi "now plus 2 year"
ExpiresByType audio/mp3 "now plus 2 year"
ExpiresByType audio/mpeg "now plus 2 year"
ExpiresByType audio/ogg "now plus 2 year"
ExpiresByType audio/opus "now plus 2 year"
ExpiresByType audio/x-aiff "now plus 2 year"
ExpiresByType audio/x-mpegurl "now plus 2 year"
ExpiresByType audio/x-pn-realaudio "now plus 2 year"
ExpiresByType audio/x-wav "now plus 2 year"
ExpiresByType audio/wav "now plus 2 year"
# Movie files expiration: 2 year after request
ExpiresByType application/x-shockwave-flash "now plus 2 year"
ExpiresByType video/3gpp "now plus 2 year"
ExpiresByType video/3gpp2 "now plus 2 year"
ExpiresByType video/mp4 "now plus 2 year"
ExpiresByType video/mpeg "now plus 2 year"
ExpiresByType video/ogg "now plus 2 year"
ExpiresByType video/quicktime "now plus 2 year"
ExpiresByType video/webm "now plus 2 year"
ExpiresByType video/x-la-asf "now plus 2 year"
ExpiresByType video/x-ms-asf "now plus 2 year"
ExpiresByType video/x-msvideo "now plus 2 year"
ExpiresByType x-world/x-vrml "now plus 2 year"
</IfModule>
# 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