How to Delete /?i= from domains!

Open .htaccess
add this code:

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

Boom It is deleted!

nope, it doesn’t disable.

1 Like

Yes only the /?i=

1 Like

I judge by topic title.
If someone can disable that whole security system, everything will taken into trouble.

4 Likes

Let’s see… my website had that annoying postfix. But once that cookie is generated, well there is no need to see it. (Please remember that the cookie only stays in the current browser session). So you can then remove that and it will stay that way until you close the browser.

1 Like

This snippet works, but it strips the whole query string from the URL, not just the i parameter. So if your website relies on query strings (e.g. http://shop.example.com/collection/summer2020?page=3), then it will break your site.

I would guess that someone could write a more clever regex that only removes the i=1/2/3 parameter.

4 Likes

The ?i= is part of the security system that check to see if the visitor is a browser. You cannot disable this.

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