Skip to content

I can't see my .htaccess file

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.

  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.

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

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.

Was this page helpful?