Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
You are experiencing a redirect notification when attempting to view a product on your site while logged in as an admin.
Solution:
The issue is caused by a 301 redirect set up by the Rank Math SEO plugin. This is evident from the 'X-Redirect-By: Rank Math' header in the response. To resolve this, you should check the redirect settings in the Rank Math plugin and adjust them to prevent redirects when logged in as an admin.

If this solution does not apply to your case, or if it seems outdated, we recommend opening a new support ticket. Additionally, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by Marcel 1 week, 1 day ago.

Assisted by: Marcel.

Author Posts
November 18, 2024 at 2:33 pm #16415304

maarten

Background of the issue:
I am trying to view a product on my site hidden link while logged in as an admin.

Symptoms:
I receive a notification for a redirect when attempting to view a product.

Questions:
Why am I getting a redirect notification when viewing a product?
Is there a way to stop the redirect when viewing products as an admin?

November 18, 2024 at 5:14 pm #16416117

Marcel
Supporter

Languages: English (English ) German (Deutsch )

Timezone: Europe/Madrid (GMT+01:00)

Hi,

This redirect screen is not originating from us. I was able to reproduce it, and it appears to be coming from Rank Math. A 301 redirect is defined, as indicated in the "X-Redirect-By" header:

URL: hidden link
Response:

> --------------------------------------------
> 301 Moved Permanently
> --------------------------------------------

Status: 301 Moved Permanently
Code: 301
Server: nginx
Date: Mon, 18 Nov 2024 17:12:34 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: close
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0, s-maxage=2592000
X-Redirect-By: Rank Math
Location: hidden link
Age: 0
X-Cache: MISS

Best Regards
Marcel