• cbprice25

    (@cbprice25)


    Hello all!

    I’m using the plugin Redirection, and I’ve unfortunately come across some cases where we get a redirection loop.

    For example:

    – domain.com/user-group
    redirects properly

    – domain.com/thank-you/user-group
    gets caught up in the above redirect, causing a loop.

    Does anyone know of any way to avoid this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Are you using regular expressions? If so you’ll need to adjust them to capture at the start or end of the URL (using ^ or $)

    Thread Starter cbprice25

    (@cbprice25)

    That’s what I’d love to do!

    So how would that work?

    When I enter “domain.com/name”, it strips out “domain.com” and the Source URL is written as “/name”.

    Would I have to enter it as:
    1. ^/name
    2. ^\/name
    3. ^http://domain.com/name

    Thanks! Really appreciated!

    Yes, ^/name will only match when /name is at the start of the URL. If /name occurs anywhere else in the URL then it won’t match.

    All source URLs in Redirection are relative to the site where WordPress is installed, so there is no need to enter http://domain.com, and it is removed.

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

The topic ‘Redirection Loop’ is closed to new replies.