> ## Documentation Index
> Fetch the complete documentation index at: https://citodocs.prostack.host/llms.txt
> Use this file to discover all available pages before exploring further.

# .htaccess Import

> Import directives from Apache .htaccess files into Cito

Cito does not natively support `.htaccess` files- these are files that modify Apache web server behaviour. Because Cito runs Nginx as its web server, these files do not have any effect.

We have a `.htaccess` import wizard which will detect these files in your site (for example when you migrate from another server) and offer to import them. We display a warning under Site Settings when we've detected a `.htaccess` file that you can import.

## Supported directives

We support the following directives which can be imported:

* Redirects
* IP blocks
* Password protection
* Custom HTTP headers

Password protection can only be imported into the root of your website- we do not support password-protecting a subpath.

Custom HTTP headers apply to the entire site.

## Using the import wizard

The import wizard will list the `.htaccess` directives that we detect and allow you to select the ones you wish to import.

<img src="https://mintcdn.com/prostackhosting/mdYxEEoAStQaBUbz/images/screenshots/htimportwizard.png?fit=max&auto=format&n=mdYxEEoAStQaBUbz&q=85&s=f1e608d72c8d0057d951090d2ead56ea" alt="Htaccess Import Wizard" width="1488" height="498" data-path="images/screenshots/htimportwizard.png" />

We will automatically flag unsupported rules so you can examine them. Duplicate rules will not be imported.

Once you have imported the rules, you'll be prompted to remove the `.htaccess` file afterwards. This is optional.

<img src="https://mintcdn.com/prostackhosting/mdYxEEoAStQaBUbz/images/screenshots/htimport2.png?fit=max&auto=format&n=mdYxEEoAStQaBUbz&q=85&s=c268ec8b1765719710523c9ac45a81d3" alt="Htaccess Import Step 2" width="1496" height="588" data-path="images/screenshots/htimport2.png" />
