How to find .htaccess file in cPanel and then disable it?

The .htaccess file is a hidden text file that allows you to control the way visitors access your site. Some common uses of the .htaccess file would be restricting access to certain files or redirecting URLs. We have created this tutorial for such user who are having trouble finding their .htaccess file.

Step::1 Go to yourdomain.com/cpanel and log in.

Step::2 In the Files section, look for the “File Manager” icon and click on it.

Step::3 Go to the root directory i.e public_html

Step::4 Click on the Settings tab at the top right corner and tick the “Show Hidden Files (dotfiles)” box, then tap on save

Step::5 Now you should be able to see the .htaccess file on that page.

So now that you have find .htaccess file and want to disable it, then in that case you simply need to rename .htaccess file to something else like .htaccess_disable.

If you want to search for all .htaccess file in your cPanel simply go to the search box at the top right corner and type .htaccess.

In this way you will be able to find all the .htaccess file location in your cPanel.

Apart from this there is one more htaccess file which is located just outside public_html.

You can even rename it to disable .htaccess file completely.

Visit our Blog for more details. You can also watch the video here.

  • How to find .htaccess file in cPanel and then disable it, how to find and rename .htaccess file in cpanel
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to prevent Cross Site Scripting(XSS) injection attack in your Website?

Cross-site Scripting (XSS) is a client-side code injection attack. The attacker aims to execute...

How to protect PHP file execution in a specific directory?

Having some directories writeable by default makes your site vulnerable to hacker attacks....

How to Create backup & store them remotely in any Server using SCP?

Step::1 Login to cPanel and go to Backup Wizard in Files section.Step::2 Now click over Backup...

How to find all http in your website and replace them with https in cPanel?

Step::1 Login to your cPanel and open File ManagerStep::2 Next go inside public_html and create a...

How to secure ‘public html’?

Permissions can be very important when it comes to hosting your website. Permissions can allow...