Friday, April 12, 2024

Top 5 Popular Articles

Infinity Domain Hosting

Related TOPICS


htaccess file

htaccess file

Today I’m going to explain how you can create a .htaccess file inside your CPanel hosting. Let’s get started. If you’ve read any of our previous articles on apache or .htaccess, you have probably noticed how important the .htaccess file is.

It can help you do many things from changing your Maximum file size limit to forcing HTTPS on your website. It can be a little tricky to track down, so I’m going to show you where to find it today.

Login to your CPanel, and click on the file manager icon.

This is going to take you to the home directory. We can see a lot of really common folders here like public_html, bin, mail, etc. as shown below;


Open public_html (root directory of your site), if you don’t see the .htaccess file or if you need to edit it you need to be able to find it first.

If hidden just go up to the top-right hand corner and click on ‘settings’, there’s a check box there called ‘show hidden files (dotfiles)’.


htaccess file



This is going to allow you to see any file that starts with a dot, which would effectively be hidden by default in Linux. Once this is done, go ahead and click save.

It’ll refresh this page, and you can scroll down just a little bit to see all of the dotfiles that you now have in your system. Now you can access them, edit them, make changes as you need. If we want to see and modify the .htaccess, we can simply click on it, right-click to do view or edit.


In case you don’t see the .htaccess file here you can go ahead and click the file icon here up top, and then just make a new one if you want to. But in most cases, you’ll find one there, especially if there is already WordPress installed, otherwise go ahead and open and view what’s inside of it. And that’s it! If you want to view, edit, do anything that you need to do for the .htaccess, you can easily make those changes. I hope this was helpful. If you have any questions or comments, please leave them below, and check our Knowledgebase section if you want to learn more about .htaccess redirect to HTTPS.

Be blessed!!!


Please enter your comment!
Please enter your name here

Recent Articles