File: //var/www/html/.htaccess
AddHandler fcgid-script .cgi
FcgidWrapper /usr/local/bin/fcgid_php .cgi
Options -Indexes +ExecCGI +FollowSymlinks
DirectoryIndex index.cgi index.php index.html index.htm
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*\.hostgator.com$
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{HTTP_HOST} ^.*\.hostgator.com$
RewriteCond %{REQUEST_URI} !404.html$
RewriteRule .* /404.html [L,R=404]
RewriteCond %{REQUEST_URI} !^index\.cgi$
RewriteCond %{REQUEST_URI} !suspended\.page
RewriteCond %{REQUEST_FILENAME} !^.*_bkp\.zip$
RewriteRule !^index.cgi|\.well-known|robots.txt|404.html|whm-server-status|whm-scoreboard|googlef4d31c4817a787bc.html|images/*|js/*$ /index.cgi [L]