Redirect not Working

#941720
  • Hi team,

    we recently updated a redirect to new file but it doesn’t seem to work. If I create a new one it works fine, however if I update the existing one it doesn’t work. I even deleted them all as suggested in help article and then imported them in again and same thing happens. I have since deleted the old file that the redirect was pointing to but it still doesn’t work.

    I have cleared the cache on my wordpress account but nothing still.

    I am at a loss now and need this redirect updating as it points to an external list that should be accessible by our clients.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Can you please share the redirection you created on your website in this structure?

    Source:
    Redirection Type:
    Destination URL:
    

    Or, you can share a screenshot of the redirection by using a tool like https://imgur.com/upload so that we can check this further for you.

    Looking forward to helping you.

    Hi,

    Please see details requested below

    Source: appmonsta.ai/sellers.json
    Type: 301
    Destination URL: https://appmonsta.ai/wp-content/uploads/2024/12/sellers-1.json

    Hello,

    Unfortunately, Rank Math Redirection doesn’t support redirecting file URLs from wp-content. You can use the .htaccess file to redirect these URLs: https://wpscholar.com/blog/simple-redirects-with-htaccess/

    Here’s how you can edit the .htaccess file using Rank Math:
    https://rankmath.com/kb/edit-htaccess/

    Please do take a backup before editing your .htaccess file.

    Hope that helps and please don’t hesitate to let us know if you have any other questions.
     
    Thank you.

    Hi,

    The file is .json and needs CORS enabled. I am not sure why you say it will not work as this is how it was originally setup and was working fine for the old version of the file, just doesn’t work for the new version.

    Hello,

    The issue is that when you access the file sellers.json the request never touches the WordPress installation and since our plugin can only handle redirections when the call is being made through the WordPress installation this won’t work.

    Don’t hesitate to get in touch if you have any other questions.

    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 5 replies - 1 through 5 (of 5 total)

The ticket ‘Redirect not Working’ is closed to new replies.