# .htaccess

**URL:** <https://forum.infinityfree.com/t/htaccess/92534>\
**Category:** Hosting Support\
**Created:** [April 19, 2024, 6:58pm UTC](https://forum.infinityfree.com/t/htaccess/92534 "2024-04-19T18:58:56Z")\
**Posts on this page:** 10\
**Page:** 2

<div class="post-metadata">

**Author:** ![saikub](https://forum.infinityfree.com/letter_avatar/saikub/32/6_449c533f586939b6e5f246632a46421f.png) [@saikub](https://forum.infinityfree.com/u/saikub)\
**Post date:** [May 3, 2024, 2:27pm UTC](https://forum.infinityfree.com/t/htaccess/92534/21 "2024-05-03T14:27:12Z")

</div>

this post is an earlier of [.htaccess](https://forum.infinityfree.com/t/htaccess/92534)  
as i can’t reopen that post creating new one add this or merge this topic in that post. And Anyone found that found and what is the solution for that problem why it is deleting the file when ever ReWrite rules are implementing in that file even admin tried too. Did you find any solution for this.

> [@Admin](#):
>
> I tried uploading that .htaccess file to one of my own accounts and it was deleted ~10 seconds after uploading it. When I uploaded segments of the files, it also deleted them. It’s really strange, and I’m unable to pinpoint exactly what triggers the removal, because it doesn’t seem to be file sizes or specific lines.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [May 3, 2024, 2:48pm UTC](https://forum.infinityfree.com/t/htaccess/92534/22 "2024-05-03T14:48:22Z")

</div>

Opened on May 3, 2024, 2:48pm UTC



---

<div class="post-metadata">

**Author:** ![saikub](https://forum.infinityfree.com/letter_avatar/saikub/32/6_449c533f586939b6e5f246632a46421f.png) [@saikub](https://forum.infinityfree.com/u/saikub)\
**Post date:** [May 4, 2024, 4:57pm UTC](https://forum.infinityfree.com/t/htaccess/92534/23 "2024-05-04T16:57:37Z")

</div>

Anyone still getting this same issue. Hoping soon know the reason behind this disappearing or deleting file automatically, and resolution.

---

<div class="post-metadata">

**Author:** ![saikub](https://forum.infinityfree.com/letter_avatar/saikub/32/6_449c533f586939b6e5f246632a46421f.png) [@saikub](https://forum.infinityfree.com/u/saikub)\
**Post date:** [May 21, 2024, 10:47am UTC](https://forum.infinityfree.com/t/htaccess/92534/24 "2024-05-21T10:47:31Z")

</div>

Hi all, still .htaccess file is removing or deleting automatically and also this something important to me as ?i=1 redirections was happening over my site and i’m not happy with that. and i can’t use any script to remove ?i=1 inside any html or run with my website. @Admin do still have any idea about this issue.

---

<div class="post-metadata">

**Author:** ![Greenreader9](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/greenreader9/32/22847_2.png) [@Greenreader9](https://forum.infinityfree.com/u/Greenreader9)\
**Post date:** [May 21, 2024, 2:23pm UTC](https://forum.infinityfree.com/t/htaccess/92534/25 "2024-05-21T14:23:28Z")

</div>

The `i` GET param is part of the security system and cannot be removed unless you use an external DNS provider (Like CloudFlare)

> [@Why do I see ?i=1 at the end of a URL](https://forum.infinityfree.com/t/why-do-i-see-i-1-at-the-end-of-a-url/49356):
>
> Don’t worry, this is normal! When you visit your website, you might notice ?i=1 added to the end of your URL. Here’s what’s happening and why. What is the ?i=1 suffix? The ?i=1 is a security check that protects your website from bots and malicious traffic. Our system needs to verify you’re using a real web browser before letting you access your site. Why does it appear? When you first visit your website, our security system: Sends a small test to your browser Checks if your browser can store…

---

<div class="post-metadata">

**Author:** ![tech4file](https://forum.infinityfree.com/letter_avatar/tech4file/32/6_449c533f586939b6e5f246632a46421f.png) [@tech4file](https://forum.infinityfree.com/u/tech4file)\
**Post date:** [May 21, 2024, 5:47pm UTC](https://forum.infinityfree.com/t/htaccess/92534/26 "2024-05-21T17:47:13Z")

</div>

But for sub-domains and this hosting providing sub-domains can’t be added in cloudflare. only solution is to purchase new domain 🙄

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [May 21, 2024, 6:08pm UTC](https://forum.infinityfree.com/t/htaccess/92534/27 "2024-05-21T18:08:58Z")

</div>

> [@saikub](#):
>
> do still have any idea about this issue.

Not really. The `?i=1` suffix is part of our system and cannot be disabled. If blocking this with .htaccess rules doesn’t work, you can also do it with PHP code or Javascript.

And yes, this security system will generate additional redirects. You’ll be redirected once without the suffix, and redirected a second time if you setup another redirect in your code to remove it.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [May 21, 2024, 6:23pm UTC](https://forum.infinityfree.com/t/htaccess/92534/28 "2024-05-21T18:23:52Z")

</div>

> [@saikub](#):
>
> ?i=1 redirections

How about this?

```auto
RewriteEngine On
RewriteCond %{QUERY_STRING} 
RewriteRule ^([^.]*)$ /$1? [L,NE,R=301]

```

Is the .htaccess still deleted if **only** these 3 statements are present?

---

<div class="post-metadata">

**Author:** ![saikub](https://forum.infinityfree.com/letter_avatar/saikub/32/6_449c533f586939b6e5f246632a46421f.png) [@saikub](https://forum.infinityfree.com/u/saikub)\
**Post date:** [May 27, 2024, 10:53am UTC](https://forum.infinityfree.com/t/htaccess/92534/29 "2024-05-27T10:53:58Z")

</div>

> [@KangJL](#):
>
> Is the .htaccess still deleted if **only** these 3 statements are present?

I have tried other few statements also few were not deleting few were deleting. but few years back this code really works but now if these lines in the .htaccess then file is deleting

---

<div class="post-metadata">

**Author:** ![Admin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/admin/32/36437_2.png) [@Admin](https://forum.infinityfree.com/u/Admin)\
**Post date:** [June 3, 2024, 10:54am UTC](https://forum.infinityfree.com/t/htaccess/92534/30 "2024-06-03T10:54:47Z")

</div>

Closed on June 3, 2024, 10:54am UTC

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

[Previous page](https://forum.infinityfree.com/t/htaccess/92534.md?page=1)
