> For the complete documentation index, see [llms.txt](https://domainmappingsystem.gitbook.io/domainmappingsystem-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://domainmappingsystem.gitbook.io/domainmappingsystem-docs/faqs/is-the-.htaccess-file-modified.md).

# Is the .htaccess file modified?

The only case in which the .htaccess file is modified is if the plugin detects that your site is installed in a subdirectory.&#x20;

For example, if your core site URL appears to be something like "<https://your-domain.com/wordpress/>", then the following code is added to the .htaccess file:&#x20;

```
# BEGIN DMS plugin

RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} !^' . $base_host . '
RewriteRule . /index.php [L]

END DMS plugin
```
