# .htaccess file is not writable

**URL:** <https://community.hivepress.io/t/htaccess-file-is-not-writable/2163>\
**Category:** ExpertHive\
**Tags:** experthive\
**Created:** [October 3, 2022, 8:33am UTC](https://community.hivepress.io/t/htaccess-file-is-not-writable/2163 "2022-10-03T08:33:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mustafakamil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@mustafakamil](https://community.hivepress.io/u/mustafakamil)\
**Post date:** [October 3, 2022, 8:33am UTC](https://community.hivepress.io/t/htaccess-file-is-not-writable/2163/1 "2022-10-03T08:33:04Z")

</div>

Describe the issue in as much detail as possible. Please remove the sections below if the issue is obvious enough and doesn’t require extra details.

## Steps to reproduce

move from shared hosting to VPS (Centos 7), log in to wp-admin and then click on setting - permalinks

## Actual result

**Error:** Your `.htaccess` file is not [writable](https://wordpress.org/support/article/changing-file-permissions/), so updating it automatically was not possible. These are the mod\_rewrite rules you should have in your `.htaccess` file. Click in the field and press Ctrl + A (or ⌘ + A on Mac) to select all.

the above is the error message I got and I am not able to move on the website (navigating to any page except the homepage will give a forbidden error 404)

## Expected result

no error and smooth navigation

## Extra details

I tried to find the .htaccess file on the WordPress installation folder by i could not, so I have added it manually to different directories including (var/www/html) (var/www/html/wp-content) (var/www/html/wp-admin)

I am not sure where I should add the file or where to find the original one.

your help is really appreciated

---

<div class="post-metadata">

**Author:** ![ihor](https://community.hivepress.io/user_avatar/community.hivepress.io/ihor/32/5_2.png) [@ihor](https://community.hivepress.io/u/ihor)\
**Post date:** [October 3, 2022, 9:57pm UTC](https://community.hivepress.io/t/htaccess-file-is-not-writable/2163/3 "2022-10-03T21:57:04Z")

</div>

Thanks for the details. This is a server-level issue, it’s not related to ExpertHive theme - please try changing the .htaccess file permissions via FTP (related topic [.htaccess is currently not writable? | WordPress.org](https://wordpress.org/support/topic/htaccess-is-currently-not-writable/)), or try contacting your hosting provider - they should be able to help with this.

---

<div class="post-metadata">

**Author:** ![mustafakamil](https://community.hivepress.io/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@mustafakamil](https://community.hivepress.io/u/mustafakamil)\
**Post date:** [October 4, 2022, 8:18pm UTC](https://community.hivepress.io/t/htaccess-file-is-not-writable/2163/4 "2022-10-04T20:18:07Z")

</div>

Thanks for the reply @ihor

---

<div class="post-metadata">

**Author:** ![system](https://community.hivepress.io/user_avatar/community.hivepress.io/system/32/13990_2.png) [@system](https://community.hivepress.io/u/system)\
**Post date:** [November 3, 2022, 8:18pm UTC](https://community.hivepress.io/t/htaccess-file-is-not-writable/2163/5 "2022-11-03T20:18:25Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
