Options -Indexes DirectoryIndex index.html index.php RewriteEngine On # Redirect the www version to the canonical host. RewriteCond %{HTTP_HOST} ^www\.mpsenginering\.com$ [NC] RewriteRule ^ https://mpsenginering.com%{REQUEST_URI} [R=301,L] Header always set X-Content-Type-Options "nosniff" Header always set Referrer-Policy "strict-origin-when-cross-origin" AddType text/css .css AddType application/javascript .js AddType image/svg+xml .svg AddType image/png .png AddType application/pdf .pdf