How to Find .htaccess File in GoDaddy Linux cPanel 2019

GoDaddy Ffnd .htaccess file

Are you looking for the .htaccess file in GoDaddy file manager? GoDaddy is one of the leading domain name registrar, web hosting provider, SSL certificate issuer. To install an SSL or TSL issued by some other company require to access .htaccess file so can add three lines of code so the website can automatically redirect to https protocol. The .htaccess file is in File Manager but it is hidden. There are multiple ways to see and edit the file and in this post, we go with the simplest way to find .htaccess file in GoDaddy cPanel.

What is the .htaccess file?

Well, it is important to understand what is .htaccess file and why it is hidden? The file is autogenerated by GoDaddy when you create a hosting account. It is a configuration file for Apache Web Server. What the file does is a technical thing. The file is hidden because if we change anything in the file without having the knowledge it can affect the performance of the site and it can also crash the whole site.

Why we need the .htaccess file?

The most common answer is to install SSL certificates. By default, the browser reads the file and let the user know the condition of the site. Even if you install the certificate the browser will not redirect to https version because you haven’t specified that you are using https. The best way is to add three lines of codes in .htaccess file so the browser can redirect to https version.

Find the .htaccess file

Head to your cPanel, there you will find two “File Manager” options. You always click on the bottom one, but have you ever tried clicking on top one? Unfortunately bottom “File Manager” hides .htaccess file with some other files. To access and edit .htaccess file, just click on the top “File Manager“. Check the image below:

You will find .htaccess file right in the middle with other files as in the image below. Edit the file and add the code you want to add.
If you don’t have to code to add then here is three lines code to force the browser to open https version. Paste the code below the “RewriteEngine On” line. Do not delete the existing one; Keep both lines as it is recommended by GoDaddy.

RewriteEngine On 
RewriteCond %{SERVER_PORT} 80
RewriteCond %{HTTP_HOST} ^(www\.)?coolexample\.com
RewriteRule ^(.*)$$1 [R,L]

There are some other ways to find this file but the above one is the best way to find .htaccess file. Thanks for having a read and I hope it worked. Make sure to not change any other values in the file and if possible make a backup of the file.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.