> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.serverfreak.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to Edit .htaccess File via the cPanel

1. Log into your cPanel account. eg : https://yourdomain.com/cpanel

2. In the “Files” section, click on **File Manger** Icon.

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1avdtoc.png)

3. cPanel File Manager will be open, select the correct domain, and navigate to the directory where your .htaccess file is located. If you want to edit the .htaccess file of your root directory, navigate to the public_html folder.
 
4. If the .htaccess file does not show, click on the **Settings** button in the File Manager. A new small window will open. Mark the **“Show Hidden Files (Dotfiles)”** option and click on the **“Save”** button. You will be able to see the .htaccess file. If it does not exist, create a new one.

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1is2775.png)

5. Right click on the .htaccess file and then on **“Edit”**  in the Context Menu.

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_92mx4o.png)

6. If the small “Code Editor” window is open, click on the “Edit” button, which will open a new window with options you can edit.

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_1bntkdc.png)

7. Make changes to your .htaccess file and then click on the **“Save Changes”** button.

![](https://storage.crisp.chat/users/helpdesk/website/30c43b4318b81000/image_hfay58.png)

