• Resolved Rik0399

    (@rik0399)


    Hi John,

    Thanks for keeping the plugin updated, appreciated ??

    I have an interesting problem.

    All of a sudden, I’m getting bombed by URLs like this which are being appended with https:/www.google.com :

    /botaniclab-drihttps:/www.google.com

    So I do this :

    ^/botaniclab-drihttps:/www.google.com (REGEX)

    which should redirect to :

    /botaniclab-drinks/

    No matter what I try, it will not redirect and gets stuck in a loop to :

    /botaniclab-drinks/

    What would be the best way to get this to work, please? ??

    Many Thanks

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

    (@johnny5)

    Do you need a regex? It doesn’t seem necessary and a plain redirect would match just as well

    Thread Starter Rik0399

    (@rik0399)

    Hi John,

    Like I said, I have tried all ways but I cannot get the url :

    /botaniclab-drihttps:/www.google.com

    To redirect to :

    /botaniclab-drinks/

    But it shows a 404 or a message saying to many redirect message

    Are you able to offer an alternative solution to that I have already tried, please?

    Many Thanks

    Plugin Author John Godley

    (@johnny5)

    Did you try making it a plain redirect? It works fine like that.

    Thread Starter Rik0399

    (@rik0399)

    Hi John,

    Indeed I have, several times.

    When I go to a URL which has been flagged as 404 by a redirect, such as :

    /botaniclab-drihttps:/www.google.com to : /botaniclab-drinks/

    I have tried all ways to redirect it using the various paremetnerters such as :

    ^, .* and (.*) with and without using Regen.

    Here’s another example trying various parameters :

    /go/vitacoco-nutrition-drihttps:/www.google.com

    Goes to

    /vitacoco-nutrition-drihttps:/www.google.com

    Producing a 404

    • This reply was modified 1 year, 11 months ago by Rik0399.
    Plugin Author John Godley

    (@johnny5)

    The plain redirect will work, using a regex when one isn’t needed just complicates things. If it’s not working for you then the problem is something else. Can you create a plain redirect, show a screenshot of the settings, and include the full URL so it can be tested?

    Thread Starter Rik0399

    (@rik0399)

    Hi John,

    I had deactivated ALL plugins except ‘Redirection’.

    Carried out a lot of testing using the various parameters provided in the plugin.

    No matter what route/functons used, URL’s such such as :

    /botaniclab-drihttps:/www.google.com

    Which should redirect to : /botaniclab-drinks/

    All still create either a 404 or ‘redirected you too many times’?

    Very strange since all plugins have been deactivated?

    Thread Starter Rik0399

    (@rik0399)

    Hi,

    It appears that when ANY URL is hitting the site and flagged by Redirection as a 404, each is being appended with : https:/www.google.com

    No matter what parameters employed of the plugin to redirect, each produce either a 404 or ‘redirected you too many times’?

    I’ll keep at it ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t Redirect?’ is closed to new replies.