Hosting. Domains. Your next step online.

Find a missing .htaccess file in File Manager

How-to Guides Websites & files

Reveal hidden files and confirm you’re looking in the folder your domain serves.

  1. Open cPanel → Domains and click the Document Root for the affected hostname. This opens File Manager at the correct folder for that site.
  2. Select Settings in File Manager. Turn on Show Hidden Files (dotfiles) and save. Look for .htaccess in the document root and, if the problem affects a specific folder, in that folder.
  3. Download a copy before editing. If the file is absent, confirm that your application needs one before creating it. Keep backups in private storage and test the affected URL after any change.

Read the cPanel documentation