.htaccess

this post is an earlier of .htaccess
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.

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

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.

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

3 Likes

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

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.

1 Like

How about this?

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

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

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