Files & Databases

Editing the .htaccess file

The .htaccess file controls Apache behaviour for a folder and everything below it - redirects, URL rewriting, access rules and caching. It lives in public_html and starts with a dot, so enable Show hidden files in the File Manager settings to see it.

To edit it: right-click .htaccess and choose Edit. If it does not exist, create a new file named exactly .htaccess (no filename before the dot).

Common uses:

Always back it up first by downloading a copy. A single typo can cause a 500 Internal Server Error across your whole site. If that happens, restore your backup or temporarily rename the file to .htaccess-old.

WordPress manages its own rules between # BEGIN WordPress and # END WordPress - leave those alone. If you are stuck, our team can review the file for you: WhatsApp +971 58 553 6767, 24/7.

Still need a hand? Our UAE-based team is here 24/7.

Related articles

Using the file manager in DirhamHostUploading files to your websiteCreating an FTP accountFTP and SFTP settings and portsConnecting to your site with FileZilla