Web Hosting

The way to entry hidden .Htaccess file in cPanel

the-way-to-entry-hidden-htaccess-file-in-cpanel

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: www.yourdomain.com/cpanel

cpanel login page

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

How to access hidden .Htaccess file in cPanel 2Click on file Manager

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

How to access hidden .Htaccess file in cPanel 3click 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.

How to access hidden .Htaccess file in cPanel 4

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.

How to access hidden .Htaccess file in cPanel 5

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

How to access hidden .Htaccess file in cPanel 6

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.

How to access hidden .Htaccess file in cPanel 7

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

How to access hidden .Htaccess file in cPanel 8

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

script

# End enable GZip compression

How to access hidden .Htaccess file in cPanel 9

Ashok Arora is CEO and Founder of eWebGuru a leading web hosting company of India. He is a tech enthusiast with more than 25 years of experience in Internet and Technology.

Ashok is Master in Electronics from a leading Indian university.

Ashok loves to write on cloud, servers, datacenter, virtualisation technology.

0 Comments
Share

Jeffrey Rabinowitz