Why You Cant Find .htaccess File on Your WordPress Site 01

If you’re reading this, it’s because you can’t find .htaccess file on your hosting server. There are a few possible causes for your troubles. The .htaccess file is an Apache web server configuration file. You can enable/disable server features like URL redirection, password protection, and access limitation to specific IP addresses by modifying this file.

It’s also possible to increase your server’s resources and troubleshoot difficulties. To do so, you must first locate the file in the WordPress root directory.

It’s vital to note that “.htaccess” is the whole filename, not a file extension like.css or.js. When viewed by some file managers or FTP clients, the dot at the beginning (“.”) indicates that the file is hidden and will not be displayed by default.

There are two possible approaches to this problem. If the file already exists on your server, all you have to do to see it is enable the proper option(s) in your FTP client. If it doesn’t, you’ll need to make a new one and upload it via FTP to your server.

We’ll explain why you can’t find .htaccess file on your WordPress site and how to find it in this article.

.HTACCESS File- What Is It?

Many web hosting servers have a file called .htaccess. It is essentially a configuration file that instructs a webserver on how to handle specific requests.

The .htaccess is used for a variety of purposes, including:

  • Visitors should be redirected from one URL to another.
  • Reduce the length of URLs to make them more user-friendly and memorable.
  • Control who has access to which parts of your blog.

The WordPress system locates and edits the .htaccess file, modifying it to convert the permalink structure (URLs). It does this to shorten and make more memorable long and complicated sequences.

.htaccess is a hidden file, which is a type of file that is not visible to the public. Many web servers use a version of the UNIX operating system that allows for the use of hidden files. In UNIX, any file with a “dot” before the name is automatically hidden. You must configure your webserver to display them.

Why can’t I find the .htaccess file?

There are two common reasons for not finding the .htaccess file in the root folder of your website. It’s either hidden by your file manager software or doesn’t exist.

So let’s look at the reasons why you can’t find the .htaccess file.

You have no idea where to look for it.

It’s possible that you can’t find the .htaccess file because you don’t know where it is on your server.

.htaccess files are typically found in the home directory of your web server’s filesystem. If you have a WordPress blog, look for the file .htaccess in the WordPress installation directory.

Most of the time, you’ll need to look in your server’s public Html/ directory, assuming you’ve installed WordPress there. If you installed WordPress somewhere else, such as public Html/blog, you might need to look further down the directory tree.

Your FTP client is not displaying hidden files.

The dot before the file name htaccess indicates that it is a hidden file. When you connect to your WordPress hosting server using an FTP client, the hidden files are not displayed by default.

You must modify your FTP client settings to make hidden files visible.

In FileZilla, for example, you can find the option under the ‘Server » Force showing hidden files’ menu.

Image shows Server

If you use the File Manager app in cPanel, you can choose to show hidden files before launching the app.

Image shows File Manager app in cPanel

In the app settings or preferences menu of other FTP clients, you will find the option to show hidden files.

After enabling this option, you will be able to see all hidden files for your WordPress site, including the .htaccess file.

The .htaccess File Is Missing.

The second most common cause of a missing .htaccess file is that your WordPress site has not yet generated it.

It is required to properly redirect permalinks. Hence WordPress creates the .htaccess file automatically.

If your .htaccess file is missing, the first thing you should do is go to Settings » Permalinks. Click the ‘Save Changes’ button without making any changes.

Image shows Permalink Settings

WordPress will now attempt to create the .htaccess file on your behalf.

Due to a file permissions issue, WordPress may be unable to produce the .htaccess file on rare occasions. In that situation, the ‘.htaccess file is not writeable’ message will appear at the bottom of the Settings » Permalinks page.

You’ll have to manually construct the .htaccess file and add the necessary code to it.

Image shows Save Changes button

To use this code, copy and paste it into a text editor such as Notepad. After that, save it as a .htaccess file on your computer’s desktop.

Now, using an FTP program, connect to your website and upload the .htaccess file from your desktop.

If you receive an error while uploading the file, update the file permissions for your root directory.

Assume that all your WordPress files are located in the /home/johnsmith/public Html/ folder.

As a result, the public Html folder becomes your root directory. To do so, navigate to its parent directory and right-click the public Html folder. Select File Permissions to bring up a dialogue box with file permissions.

Now, in the file permissions dialogue box, type 755, and then try to upload your .htaccess file to the public Html folder.

Image shows change file attributes popup

How do you make hidden files visible in your FTP client?

When you’re running a WordPress site, you’ll need an FTP client. Knowing how to use an FTP client and having access to files on the server is quite important. Fortunately, there are numerous FTP clients available, both free and paid. In this post, we’ll look at a few of the most popular free FTP clients and the options to see hidden files.


FileZilla is a user-friendly application that runs on Windows, Mac OS X, and Linux. It supports the transfer protocols FTP, FTPS, and SFTP. It has a lot of features, such as rapid file editing, a keep-alive connection, the option to resume file transfers, and bookmarks. However, you must exercise extreme caution while installing bundled adware. As because it may introduce harmful programs via a backdoor. You must ensure to read through the installation options thoroughly and uncheck any optional software.

Navigate to the Server tab in FileZilla and select “Force showing hidden files” from the “Force showing hidden files” drop-down menu.

Image shows Force showing hidden files


Another user-friendly FTP program is WinSCP (Windows Secure Copy), although it is only available for Windows. It supports FTP, SFTP, SCP, Amazon S3, and WebDAV protocols, as well as Amazon S3 and WebDAV. It has a variety of features, including rapid file editing and editor options, two different interfaces, and the ability to save and import session information. However, while it is typically user-friendly, inexperienced users may struggle to adapt to the interface.

To locate the .htaccess file using WinSCP, first, connect to the server, then scroll to the “Options” tab and select “Preferences.”

Image shows Preferences button in Options

Continue by selecting the Panels category on the left. Select “Show hidden files” and press “OK.”

Image shows Select "Show hidden files" and press "OK."

Free FTP

Free FTP is an FTP client designed exclusively for newbies. It only works with Windows and supports FTP, FTPS, SFTP, and HTTPS. Bookmarks, remote editing, and FTP history are among its features. It is the only one of the four FTP clients described in this article that has a premium edition that unlocks many more features.

Go to the “View” tab and select “Show Hidden Files” to view the .htaccess file.


Image shows "Show Hidden Files" to view the .htaccess file.

Creating the .htaccess file

If you can’t find the .htaccess file, it’s most likely because it doesn’t exist and needs to be generated. This can be done both automatically and manually.

Saving permalinks

The .htaccess file is responsible for the display of site permalinks, among other things. This implies that when permalink settings are saved for the first time, the default .htaccess file is created. As a result, you’ve probably bypassed this step, and following these instructions will build a new .htaccess file.

Go to Settings > Permalinks and save your changes by clicking the “Save Changes” button in the bottom left corner.

Saving permalinks

If that doesn’t work and you get a message saying your .htaccess file “is not writeable,” it’s most likely a permissions issue. Proceed to the second option in that situation.

Creating Manually

The .htaccess file can be manually created by opening a new file in your preferred text editor and pasting the code below.

# BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

# END WordPress

Creating Manually

Now, save the file as “.htaccess” on your desktop.

Now, save the file as ".htaccess" on your desktop.

Using your FTP credentials, connect to your server and navigate to the parent directory of your root WordPress directory. This is the folder that contains the folder that contains all of the WordPress installation files. Right-click it and select “File Attributes…” from the menu that appeared.

Image shows File Attributes button

Insert 755 manually, and Press “OK.”

Image shows Insert 755 manually, and Press "OK."

Navigate to your root WordPress directory. Drag and drop the previously created file and upload it.

Navigate to your root WordPress directory. Drag and drop the previously created file and upload it.

The recommended permissions for folders and directories are 755 or 750. The file values should be 644 or 640, while the values for the wp-config.php file should be 440 or 400.

To keep your site safe, make sure these settings are set correctly after correcting the .htaccess issue.


There are three possible reasons why you can’t find the .htaccess file you need:

  • .htaccess should be in your hosting server’s home directory, but maybe you didn’t know where to look. However, you now have it.
  • Because it’s a hidden file, it’s possible that it’s already in your server’s home directory, but you can’t see it. You must enable hidden files in your Control Panel File Manager or FTP client.
  • You may also need to build a .htaccess file if you don’t already have one. This can be done with the File Manager tool in your hosting server admin tools or with an FTP client like Filezilla.

You can test multiple FTP clients using these suggestions and choose the one that is the best fit for you. Keep it handy because you’ll need the .htaccess file and FTP client frequently when troubleshooting WordPress site issues.

We hope that this post was helpful in finding the .htaccess file on your WordPress site.

Load More Related Articles
Load More By Susana Taylor
Load More In How to

Leave a Reply

Your email address will not be published. Required fields are marked *