Kaigai Blog living abroad in my twenties

【My Study Load】Web Site Making

Infotech

HTTPS

How to redirect to https in godaddy

  • Go to the file manager in cPanel and click setting “Show Hidden Files (dotfiles)” checked.
  • Click on public_html, and open your .htaccess if you already have one. If not, click File+, name the file .htaccess and click Create New File.
  • Type the following code and change “coolexample.com” to your website domain
RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$ https://www.coolexample.com/$1 [R,L]

Troubleshooting

Couldn’t connect to the website when typing the correct domain name

“DNS_PROBE_FINISHED_NXDOMAIN” was displayed
When I look up in ICANN, the server status was “serverhold”

  • I tried to update the DNS Type A record. (Even though it was directing to the correct IP address of the server, I tried) -> Didn’t work
  • Check if the website was stopped from them (From godaddy? IDK) -> This worked!!

Tools that I used