Hey, it’s Hoz with a quick video to show you how to access and edit htaccess file in cPanel.If you use WordPress then you're almost inevitably going to have to deal with the htaccess file at some point.Click To Tweet
And that’s what this tutorial is all about. So let’s get started!
Here's what we're going to be covering...
Where is htaccess File in cPanel and How do I Edit it Once I Find it?
The htaccess file is in the root of your website folder, in cPanel. In the video you’ll see that I’m logged into my cPanel account. Once you log into your own cpanel, you’ll want to go to your file manager. To do this, you can use the search box to filter out all the app icons until you see the File Manager icon, just like I do in the demo video.
Once you’ve found the File Manager icon, click it to go to that area.
So Where do I Find htaccess File?
If you have only 1 website in your cPanel account, then you should find htaccess in the public_html folder that will usually contain the website files. If you installed WordPress, then inside the public_html directory will be the corresponding folders.
In the video demo, I happen to have many websites under the cPanel account I’m using, so each website is represented by a different folder. So in my case I would click on the folder that corresponds to the website.
For example, if I have a website called myblog(dot)com then there will be a corresponding folder called myblog(dot)com.
In the video example, I choose a random folder and then all the directories, subdirectories and files insider the folder that I click appear on the main screen in the right hand side, where you can see my own htaccess file.
How to Find htaccess file in cPanel if You Can’t See it?
To edit htaccess file in cPanel you need to select the file and click edit from the menu, but what if you can’t see find it?
If this happens to you, it’s likely that the file is set to invisible mode. This file’s name begins with a dot ( .htaccess ) and that makes it act like a system file – it’s hidden by default.
So, you’ll want to go to the top right hand side where you see the Settings button, click on that and you can see in my case that I have the show hidden files option enabled already. That’s what you need to enable in your cPanel.
Steps to Edit htaccess File in cPanel Once it’s Visible
Once you can see the file, just click on the file to highlight it and then click on the Edit link in the menu (see video), click OK to the warning once you read and understand it, and then you’re inside your htaccess file, in edit mode.
And that’s how you edit htaccess file in cPanel.
The alternative is to edit it in your computer and then upload it to your web server via FTP, although the method is a little more complicated. To achieve this, you need a text editor capable of opening the file. I use Text Wrangler. Once you edit and save the file, you’d then upload it and overwrite the existing file.
This was a Hoz tutorial on how to edit htaccess file in cPanel which featured on the Youtube Channel. Make sure you CLICK TO SUBSCRIBE to catch all the video updates!
Please Share This Content
Hey, I would really appreciate it if you share this content with your friends and followers :)?