How to access hidden .htaccess file in cPanel > eWebGuru Blog

Many times core files like a htaccess are hidden by default to maintain security. Are you looking to access the .htaccess file in cPanel of eWebGuru? Here we will guide you to access your hidden .htaccess file in your control panel.

How to access the hidden htaccess file in cPanel

Step 1 First you have to log into the cPanel. To log in, you need to type your domain name / cPanel in a browser. Enter your cPanel Login Username and Password and press Enter.

For example:

cpanel login page

Step 2 Find File Manager option in ‘ File’ Section of cPanel dashboard and click on it.

Click on file Manager

Step 3 Now file manager will open. You can see ‘Settings’ button in upper corner. Click on that Setting button.

click on setting option in upper corner

Step 4 Now Settings popup will open. Please select Document root [ your domain name]. Now please select the’ Show hidden files’ option in the checklist below. and click on the ‘ Save ‘ button.

Step 5 Now You will able to see your .htaccess file in the file manager of your cPanel. Now right-click on the .htaccess file.

Step 6 After you do right click on that file you will see popup with various options. Now select ‘ Edit ‘ option in that list.

Step 7 Now you will see anather popup asking to select character encoding. You have to select ‘utf 8’ format and click on edit button.

Step 8 Editor screen will open now you can edit your .htaccess file. Please make sure you take below precautions while editing htaccess.

Precautions to take while editing .htaccess file.

  1. You must take the backup of htaccess file before editing. To take a backup of htaccess file, do right click on htaccess file in the file manager. Then select the ‘copy’ option. This file will be copied in the same directory.
  2. Don’t break existing scripts in .htaccess. This can cause the breakdown of the website.
  3. Make sure you add a description to your codes shown below.

# Start enable GZip compression


# End enable GZip compression

Source link

Leave a Comment

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