Rest API do redirect

#646169
Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    The page that you mentioned is returning a redirect is actually returning a 404 error as you can see here:
    404 error

    When we remove the language prefix from the first URL and only keep it in the query parameter to retrieve the data from that page we get the data of a 404 page as well.

    One thing we noted is that those 404 errors do come directly from the server and never reach the WordPress installation which could explain why the results are not accurate with the data on the language pages.

    Do you have any custom rules in the .htaccess file? If so, please try this again with a default file, and also let us know the translation plugin you are using.

    Looking forward to hearing back from you.

    Marco Calandra
    Rank Math free

    Ok, this is so strange. I watch my htaccess and is the default of the WP Installation. But i noticed one thing. If you call the API with the url parameter with urlencode, the call do redirect. If you call the API without urlencode, perform a 404. Try with urlencode of the URL get params and will see the redirect

    Hello,

    Thank you for your patience.

    Could you please share the translation plugin you’re using so we can check as well?

    Looking forward to helping you.

    I’m using WPML

    Any news?

    Hello,

    Sorry for not following up quickly and for any inconvenience that might have been caused due to that. Can you please add your site’s admin access in the Sensitive Data Section so we can check the settings on your site?

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘Rest API do redirect’ is closed to new replies.