Your country & currency

Make yourself at home. Choose your preferred shopping currency.

Your selected country opens its KickHost website. Your shopping currency is saved. Visit country website .

Guide

How to Edit (Dot)htaccess File in the cPanel File Manager

Edit the .htaccess file in cPanel File Manager. Steps for KickHost customers in Kenya.

Share

The .htaccess file controls redirects, security rules and caching for your website. You can edit it in File Manager when you need a change.

1. Log in to your cPanel account.

2. In the Files section, click on File Manager.
Filemanager icon

3. Navigate to the directory where your dot htaccess file is located. To edit the .htaccess file of your root directory, navigate to the public_html directory.

4. If the .htaccess file is not visible, click Settings in the top right corner of the File Manager. In the settings window, check the box next to Show Hidden Files (Dotfiles) and click Save. The .htaccess file should now be visible. If it is still not there, you can create a new one.
Hidden htaccess paperlantern


5. Right-click on the dot htaccess file and then Edit in the Context Menu.
Filemanager htaccess

6. In a new window box, click on Edit.
Filemanager htaccess edit menu

7. Make changes to your dot htaccess file and click on Save Changes.
Filemanager htaccess edit

Show hidden files

The file is hidden by default. In File Manager open Settings and tick Show Hidden Files. Download a copy before you change anything.

If you get a 500 error

A typing mistake can break your website. Restore your saved copy and try again with a smaller change.

Frequently asked questions

Where is the .htaccess file? Usually in public_html next to your website files.

Can WordPress change .htaccess? Yes. Permalink changes and some plugins add rules.

Related guides

Need cPanel hosting in Kenya? See KickHost hosting plans or contact our team.

Found this useful? Share it.

Need a hand with this?

Our team can help you choose the right domain, hosting or server and set it up properly.

Talk to our team See hosting plans