# Editing .htaccess file

**URL:** <https://forum.infinityfree.com/t/editing-htaccess-file/25977>\
**Category:** Hosting Support\
**Created:** [February 12, 2020, 12:09pm UTC](https://forum.infinityfree.com/t/editing-htaccess-file/25977 "2020-02-12T12:09:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon64776257](https://forum.infinityfree.com/letter_avatar/anon64776257/32/6_449c533f586939b6e5f246632a46421f.png) [@anon64776257](https://forum.infinityfree.com/u/anon64776257)\
**Post date:** [February 12, 2020, 12:09pm UTC](https://forum.infinityfree.com/t/editing-htaccess-file/25977/1 "2020-02-12T12:09:30Z")

</div>

Hi, am I allowed to edit the .htaccess file, can you help with other actions that may cause account suspension.

---

<div class="post-metadata">

**Author:** ![anon57849175](https://forum.infinityfree.com/letter_avatar/anon57849175/32/6_449c533f586939b6e5f246632a46421f.png) [@anon57849175](https://forum.infinityfree.com/u/anon57849175)\
**Post date:** [February 12, 2020, 12:15pm UTC](https://forum.infinityfree.com/t/editing-htaccess-file/25977/2 "2020-02-12T12:15:05Z")

</div>

You can’t edit the `.htaccess` file outside of the `htdocs` folders on free hosting. You should create a `.htaccess` file on your `htdocs` folder instead and use that to add new rules or override the ones inside the `.htaccess` file on the `/` folder.

---

<div class="post-metadata">

**Author:** ![anon64776257](https://forum.infinityfree.com/letter_avatar/anon64776257/32/6_449c533f586939b6e5f246632a46421f.png) [@anon64776257](https://forum.infinityfree.com/u/anon64776257)\
**Post date:** [February 12, 2020, 10:16pm UTC](https://forum.infinityfree.com/t/editing-htaccess-file/25977/3 "2020-02-12T22:16:04Z")

</div>

Okay mate, thank you.

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [April 12, 2020, 10:17pm UTC](https://forum.infinityfree.com/t/editing-htaccess-file/25977/4 "2020-04-12T22:17:02Z")

</div>

Closed on April 12, 2020, 10:17pm UTC

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