# =========================== # BROWSER CACHE # =========================== ExpiresActive On ExpiresDefault "access plus 24 hours" ExpiresByType text/html "access plus 2 hours" ExpiresByType image/jpg "access plus 24 hours" ExpiresByType image/jpeg "access plus 24 hours" ExpiresByType image/gif "access plus 24 hours" ExpiresByType image/png "access plus 24 hours" ExpiresByType image/webp "access plus 24 hours" ExpiresByType text/css "access plus 24 hours" ExpiresByType text/javascript "access plus 24 hours" ExpiresByType application/pdf "access plus 1 week" ExpiresByType image/x-icon "access plus 1 year" # =========================== # SECURITY & PERFORMANCE # =========================== Options -Indexes Header set X-Endurance-Cache-Level "0" # =========================== # REWRITE ENGINE # =========================== RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / # --- Domain redirect: cloud2b-us.com -> cloud2b.ai --- RewriteCond %{HTTP_HOST} ^(www\.)?cloud2b\-us\.com$ [NC] RewriteRule ^/?$ https://cloud2b.ai/ [R=301,L] # --- Serve WebP when available --- RewriteCond %{REQUEST_FILENAME} -f RewriteCond %{REQUEST_URI} (.+)\.(gif|bmp|jpg|jpeg|png|tiff|svg)$ [NC] RewriteCond %{DOCUMENT_ROOT}%1.webp -f RewriteRule ^(.+)\.(gif|bmp|jpg|jpeg|png|tiff|svg)$ $1.webp [T=image/webp,E=WEBP_REDIRECT:1,L] # --- Skip 404 for static file extensions --- RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} !(robots\.txt|ads\.txt|[a-z0-9_\-]*sitemap[a-z0-9_\.\-]*\.(xml|xsl|html)(\.gz)?) RewriteCond %{REQUEST_URI} \.(css|js|html|htm|txt|xml|json|pdf|gif|jpg|jpeg|png|webp|avif|svg|svgz|ico|woff|woff2|ttf|otf|eot|mp3|mp4|m4v|mpeg|webm|ogg|ogv|avi|mov|zip|gz|tar|doc|docx|xls|xlsx|ppt|pptx)$ [NC] RewriteRule .* - [L] # --- WordPress (blog posts from soro.ai) --- RewriteRule ^index\.(php|html)$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # =========================== # PHP VERSION (do not edit) # =========================== # php -- BEGIN cPanel-generated handler AddHandler application/x-httpd-alt-php74___lsphp .php .php7 .phtml # php -- END cPanel-generated handler