# I can't see my .htaccess file

> Why your .htaccess file doesn't appear in File Manager or your FTP client, how to show hidden files, and how to create the file if it's missing.

Source: https://helpcenter.ruachost.com/cpanel/guides/i-cant-see-dot-htaccess/

Your `.htaccess` file is probably hidden. Files whose names start with a dot are hidden by default in cPanel's **File Manager** and in many FTP clients. If showing hidden files doesn't help, the file may not exist yet, and you can create it.

## Show hidden files in File Manager

1. Log in to cPanel and open **File Manager**.
2. Click **Settings** in the top-right corner.
3. Tick **Show Hidden Files (dotfiles)**.
4. Click **Save**.
5. Open your website's folder, usually `public_html`. The `.htaccess` file should now appear.

## Show hidden files in an FTP client

In FileZilla, click **Server → Force showing hidden files**. Other FTP clients have a similar option in their settings.

## If the file still isn't there

Some websites don't have a `.htaccess` file until you create one. To create it:

1. In **File Manager**, open the folder where you need it, usually `public_html`.
2. Click **+ File**.
3. Enter `.htaccess` as the file name, including the dot at the start.
4. Click **Create New File**, then right-click the file and choose **Edit** to add your rules.

> **Caution:**
A mistake in `.htaccess` can take your website offline with a 500 error. Download a copy of the file before you change it, so you can restore it if needed.

## Related articles

- [Editing .htaccess files with cPanel or the command line](https://helpcenter.ruachost.com/developers/linux/editing-htaccess-files-with-cpanel-or-the-command-line/)
- [Getting started with cPanel File Manager](https://helpcenter.ruachost.com/cpanel/files/getting-started-with-cpanel-file-manager/)
- [Fixing 500 internal server errors](https://helpcenter.ruachost.com/getting-started/website-troubleshooting/fixing-500-internal-server-errors/)
