---
title: "What is: .htaccess"
description: .htaccess is a configuration file used by the Apache web server. It’s a hidden file located in the root folder of your website and contains rules about how the web server should function.
---

[Skip to content](https://help.blakemarkdigital.co.uk/what-is-htaccess#main-content)

English - United Kingdom

Show submenu for translations

[More support](https://help.blakemarkdigital.co.uk/kb-tickets/new) [Support Portal](https://help.blakemarkdigital.co.uk/support-portal)

[![Blake Mark Digital Logo](https://help.blakemarkdigital.co.uk/hs-fs/hubfs/Asset%205.png?width=200&height=57&name=Asset%205.png)](https://blakemarkproductions.com/)

Open main navigation

Close main navigation

- English - United Kingdom
  
  Show submenu for translations
- [More support](https://help.blakemarkdigital.co.uk/kb-tickets/new)
- [Support Portal](https://help.blakemarkdigital.co.uk/support-portal)
- [Contact Support](https://help.blakemarkproductions.com/support-portal)

[Contact Support](https://help.blakemarkproductions.com/support-portal)

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://help.blakemarkdigital.co.uk/)
2. [WordPress Glossary Terms](https://help.blakemarkdigital.co.uk/wordpress-glossary-terms)
3. [H](https://help.blakemarkdigital.co.uk/wordpress-glossary-terms#h)

# What is: .htaccess

.htaccess is a configuration file used by the Apache web server. It’s a hidden file located in the root folder of your website and contains rules about how the web server should function.

WordPress automatically stores some of its settings in .htaccess, and advanced users can edit the file manually to configure their website and solve problems.

Other web servers don’t use the .htaccess file. For example, if your WordPress hosting provider uses Nginx or Microsoft Windows Server, then your site will not have a .htaccess file.

### How WordPress Uses the .htaccess File

WordPress automatically stores some of its settings in the .htaccess file. For example, it uses .htaccess when it rewrites URLs to make them more readable by humans and search engines.

When you navigate to **Settings » Permalinks** and select the URL structure for your blog, WordPress automatically rewrites your .htaccess file to handle the URL structure you choose.

![WordPress Stores Permalink Settings in .htaccess](https://www.wpbeginner.com/wp-content/uploads/2014/03/htaccesspermalink.png)

Also, plugins such as W3 Total Cache will modify your .htaccess file in order to configure the caching and optimisation tools that are part of the plugin.

### How to Manually Configure the .htaccess File

Manually editing the .htaccess file is risky, as it can cause major server errors if configured incorrectly. We recommend you download a copy of your .htaccess file to your computer as a backup. You can use that file in case anything goes wrong.

Sometimes, WordPress is unable to write to the .htaccess file and will ask you to do it manually. Be careful only to copy the exact contents given to you by WordPress.

that show you how to edit .htaccess to improve your site and solve specific problems.

#### How to Access the .htaccess File

To access the .htaccess file, you’ll need to use an FTP client like FileZilla or the file manager option in your [cPanel](https://help.blakemarkdigital.co.uk/using-cpanel-file-manager).

If you haven’t used FTP before, then you may want to see our guide on how to use FTP to upload files to WordPress.

![You Access .htaccess Using an FTP Client](https://www.wpbeginner.com/wp-content/uploads/2014/03/htaccessftpclient.png)

You should find .htaccess in the root directory of your WordPress site. However, your FTP client may not initially show the file since file names starting with a period are considered hidden by the server.

If you can’t see these hidden files, then you will need to enable the ‘show hidden files’ option in your FTP client. If you still cannot find your .htaccess file, then see our guide on how to find the .htaccess file in WordPress.

- [Getting Started](https://help.blakemarkdigital.co.uk/getting-started)
- [Web Hosting](https://help.blakemarkdigital.co.uk/web-hosting#main-content)

    - [Elementor](https://help.blakemarkdigital.co.uk/web-hosting#elementor)
    - [WordPress](https://help.blakemarkdigital.co.uk/web-hosting#wordpress)
    - [Security](https://help.blakemarkdigital.co.uk/web-hosting#security)
- [Email](https://help.blakemarkdigital.co.uk/email#main-content)

    - [Mail Clients](https://help.blakemarkdigital.co.uk/email#mail-clients)
    - [SpamExperts](https://help.blakemarkdigital.co.uk/email#spamexperts)
    - [MailChannels](https://help.blakemarkdigital.co.uk/email#mailchannels)
- [Domains](https://help.blakemarkdigital.co.uk/domains#main-content)

    - [Domain Privacy](https://help.blakemarkdigital.co.uk/domains#domain-privacy)
- [Billing](https://help.blakemarkdigital.co.uk/billing)
- [cPanel](https://help.blakemarkdigital.co.uk/cpanel#main-content)

    - [JetBackup](https://help.blakemarkdigital.co.uk/cpanel#jetbackup)
    - [Softaculous](https://help.blakemarkdigital.co.uk/cpanel#softaculous)
- [WordPress Glossary Terms](https://help.blakemarkdigital.co.uk/wordpress-glossary-terms#main-content)

    - [H](https://help.blakemarkdigital.co.uk/wordpress-glossary-terms#h)

[![Blake Mark Digital Logo](https://help.blakemarkdigital.co.uk/hs-fs/hubfs/Asset%205.png?width=250&height=71&name=Asset%205.png "Blake Mark Digital Logo")](https://blakemarkdigital.co.uk/)

Blake Mark Digital is a digital marketing agency supporting SMEs and non-profits with strategic branding, content, and campaigns that drive real results

124-128 City Road, London, EC1V 2NX

[support@blakemarkdigital.co.uk](mailto:support@blakemarkdigital.co.uk)

+44 20 4578 9582

<https://www.facebook.com/blakemarkproductions> <https://www.instagram.com/blakemarkproductions/> <https://blakemarkproductions.com/podcast> [mailto:support@blakemarkproductions.com](mailto:support@blakemarkproductions.com)

Copyright © Blake Mark Productions Ltd