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.
Show hidden files in File Manager
Section titled “Show hidden files in File Manager”- Log in to cPanel and open File Manager.
- Click Settings in the top-right corner.
- Tick Show Hidden Files (dotfiles).
- Click Save.
- Open your website’s folder, usually
public_html. The.htaccessfile should now appear.
Show hidden files in an FTP client
Section titled “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
Section titled “If the file still isn’t there”Some websites don’t have a .htaccess file until you create one. To create it:
- In File Manager, open the folder where you need it, usually
public_html. - Click + File.
- Enter
.htaccessas the file name, including the dot at the start. - Click Create New File, then right-click the file and choose Edit to add your rules.
Related articles
Section titled “Related articles”Was this page helpful?
Thanks for your feedback.