Home WordPress htaccess file

htaccess file

0

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)’.

 

 

 

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. https://wordpress.org/support/article/htaccess/

 

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!!!

Ultimate Guide to .htaccess File Configuration
New to .htaccess files? Our beginner-friendly guide breaks down the basics to help you manage your website's server settings effectively!
PHP Scripts

NO COMMENTS

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Exit mobile version
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Strictly Necessary Cookies

Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.