Why You Can’t Find .htaccess File In WordPress cPanel
June 13th, 2018 | by Ravi Chahar || 8 Comments |
While running a WordPress website, you should know about the .htaccess file. It’s a file used to handle many important things of your website.
It guides the server about the security and other things on the website. You can use this simple file for many purposes.
To solve some common errors in WordPress, sometimes it’s recommended to delete the old .htaccess file.
A few people can’t find .htaccess file in WordPress directory. Do you know why?
In this tutorial, you will learn every aspect of this file.
What Makes This File As A Hidden File
Whenever you open the WordPress directory, you can find the .htaccess file. The dot before the name shows that it’s a hidden file.
Why you can’t find .htaccess file in WordPress
It’s because while opening the file manager, you don’t click on the checkbox to show the hidden files.
This is one of the biggest mistakes people make and don’t realize it until someone guides them.
Another Reason For Not Finding The File.
For every WordPress file, folder, directory, the different permissions are set.
There are three actions which can be taken.
The permissions are set different for all the members. It would be different for the owner than other members.
If you can’t find .htaccess file in WordPress cPanel then you should set the permissions to “755” or just “750”.
Do you know where to set it?
All the files of the WordPress website are present in the root directory or what we call public_html.
Change the permissions and access the file.
Do you know that you can create a new .htaccess file even after deleting the old one? But it’s always recommended that you should have the backup of your website before you change anything.
If you have added any extra code in the .htaccess files then it’s important to add the same code again in the new file.
Are You Still Searching For The File In Your WordPress Directory
As I have mentioned above, the most common reason is that you haven’t checked the checkbox to see the hidden files.
Sometimes, it may happen because of the user permissions. Always check the status before you create a new file. The file solution is to create a new .htaccess file from the WordPress admin panel.
What about you? Did you find .htaccess file?