How to remove ?_ic2=

For Workers & Pages, what is the name of the domain?

ice.ikhmedia.com

What is the error message?

Too Many Redirects

What is the issue or error you’re encountering

Too Many Redirects

What steps have you taken to resolve the issue?

I have tried removing the query string ?_ic2= using cloudflare page rules, even redirect rules, and even on nginx it’s self. I can remove the fbclid= directly with nginx, and it works but trying to do the same with this other query string

Here’s what I want to do
https://ice.ikhmedia.com/H2K?_ic2=1739457866180
https://ice.ikhmedia.com/H2K

Here’s what I came up with on Nginx

Inside /etc/nginx/nginx.conf

map $request_uri $redirect_ice {
“~^(.*?)([?&]ic2=[a-zA-Z0-9-]+)$” $1;
}

Inside /etc/nginx/conf.d/example.conf

 if ( $redirect_ice ) {
  return 301 $redirect_ice;
}

This solution worked for Facebook’s fbclid - but it doesn’t work for this situation - it really annoys me to have any odd stuff at the end of the url.

What are the steps to reproduce the issue?

Not sure how to reproduce the issue

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