• Resolved Lisa Boyd

    (@leaseahb)


    I have had a redirect set up for /amazon to go to an Amazon shop. This has worked previously but suddenly stopped working. I see on the Redirection website that this is not allowed. Is this a recent change? Do I need to load another plugin for this to work again?

Viewing 15 replies - 1 through 15 (of 15 total)
  • Plugin Author John Godley

    (@johnny5)

    I see on the Redirection website that this is not allowed

    That refers to your redirecting something on another website, not to you redirecting something on your own site.

    Nothing has changed and you can redirect any URL on your site to any URL you want.

    Thread Starter Lisa Boyd

    (@leaseahb)

    Ah ok. That makes sense yes. Then I’m wondering why this link stopped working? I have a page on the site that is /amazon-prime-deals that the /amazon is redirecting to instead of what I have in Redirection. If I move that page to draft, then /amazon redirects to a 404 error page instead of the Amazon store link. Any ideas of what I should be checking?

    Plugin Author John Godley

    (@johnny5)

    Given the information I couldn’t really say. If it’s redirecting to another similarly named page then that is likely WordPress making a best guess. Have you tried the redirect checker?

    Thread Starter Lisa Boyd

    (@leaseahb)

    The redirect checker gives me an error:

    Agent: Not using Redirection
    Something else other than Redirection is redirecting this URL.

    I’ve cleared my browser cache and the server cache. The redirect matches the url. There are no files on the server that would be overriding the url. There’s nothing else that I see that’s taking over that URL and WordPress is just making it’s best guess instead of going with the URL specified in Redirections.

    Actually – I just checked some of the other links and they all say the same thing – Agent not using Redirection. WordPress 5.7.1, Redirection 5.1.1, PHP 7.4 – any ideas what to check next?

    Plugin Author John Godley

    (@johnny5)

    Redirects by themselves don’t stop working, so it’s likely caused by something external. Has anything changed on your site recently, either a new plugin, or an update to something? What is a redirect that you’ve created that is now not working?

    Thread Starter Lisa Boyd

    (@leaseahb)

    Nothing has changed on the server-side of things. We had to remove the caching plugin because it was slowing the site down believe it or not! Flushed the server cache as well. I don’t know that either of those would’ve caused issues – but possibly with the cache it was covering up an issue with an update?

    None of the redirects that have been created are working now. The last access for some of them are dated yesterday I’m assuming before we removed the cache plugin. I’ve gone through the plugins, deactivating and testing one by one, and no change. I’ve also tested the SSL plugin’s (Really Simple SSL) settings and the 301 redirect there both options on and off and no change.

    The .htaccess file is the default for WordPress so nothing there is overriding Redirection.

    Any thoughts?

    Thread Starter Lisa Boyd

    (@leaseahb)

    I’ve checked the error logs to also see if anything is wrong there. There’s this warning which I don’t know if it has any impact on this?

    PHP message: PHP Warning: call_user_func_array() expects parameter 1 to be a valid callback, array must have exactly two members in /home/…/…/public_html/wp-includes/class-wp-hook.php on line 294

    Plugin Author John Godley

    (@johnny5)

    the last access for some of them are dated yesterday I’m assuming before we removed the cache plugin

    If the last access time was updated then the cache was not affecting it, and the redirect was working fine. If they are now no longer working then the change must have happened in between.

    What are the settings for a redirect that you have created that is now not working?

    Thread Starter Lisa Boyd

    (@leaseahb)

    Source URL: /amazon [https://journeywithjill.net/amazon]
    Query Parameters: Ignore all parameters
    Match: URL Only
    When matched: Redirect to URL with HTTP code 301 – Moved Permanently
    Target URL: https://www.amazon.com/shop/thebeginnersgarden
    Group: Redirections from Gardening Site Position 1

    Instead of redirecting to the correct url, it goes to a WordPress page:
    https://journeywithjill.net/amazon-prime-garden-deals/

    Another example:
    Source URL: /2014/06/be-careful-little-ears/ [https://journeywithjill.net/2014/06/be-careful-little-ears/]
    Query Parameters: Ignore & pass parameters to the target
    Match: URL Only
    When matched: Redirect to URL with HTTP code 301 – Moved Permanently
    Target URL: https://faith.journeywithjill.net/2014/06/be-careful-little-ears/
    Group: Redirections from Faith Multi-Site Position 336

    Thread Starter Lisa Boyd

    (@leaseahb)

    I’ve set up a staging site to test further. I deactivated all plugins except Redirection, reverted to Twenty Twenty theme, and none of the redirect links work. Can I give you access to the staging site and have you look at it? Willing to pay πŸ™‚

    Plugin Author John Godley

    (@johnny5)

    Sure you can send the details through the link on the plugin support page. No need for payment.

    Plugin Author John Godley

    (@johnny5)

    Your links on the staging site are working fine. Your live site is using some caching software, your staging site isn’t.

    Thread Starter Lisa Boyd

    (@leaseahb)

    The server has Varnish running on both the live site and the staging site. I turned it off on the live site but the links still did not work. And even though the links redirect on the staging site, when I check the redirect under Redirection, it still gives errors.

    Plugin Author John Godley

    (@johnny5)

    Sure, the redirect checker won’t work on your staging server because it is password protected. As far as I can tell your staging server is working fine.

    On your live site https://journeywithjill.net/amazon is being redirected by WordPress (as indicated by the checker). This is not something that Redirection is doing.

    Thread Starter Lisa Boyd

    (@leaseahb)

    I found the culprit! The Mediavine plugin was causing issues. Luckily they’ve just come out with an update to fix it. Thanks so much for all of your help!

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

The topic ‘Redirect to Amazon stopped working’ is closed to new replies.