Support » Plugin: Redirection » Cross-domain Redirect not working

  • Resolved jecat01

    (@jecat01)


    Hi,

    I’ve been using this plugin for years on a website. It once worked with links to another subdomain, which doesn’t work anymore.

    Here’s what happened:

    • There is a site on https://www.example.com
    • There once was a subtopic on https://www.example.com/subtopic
    • This subtopic became more important, so I’ve moved the subtopic to an own wordpress instance on a subdomain https://subtopic.example.com
    • I’ve set a redirect from www.example.com/subtopic/(.*) to https://subtopic.example.com/$1 in order to keep legacy links working
    • This used to work a while ago
    • Now instead of being redirected correctly to the subdomain, I get redirected to https://www.example.com/https:/subdomain.example.com/

    Does anybody else experience the same problem? Is a cross-subdomain link supposed to work?

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

    (@johnny5)

    The plugin doesn’t care where you redirect things. The source URL should be relative to your site: /subtopic/(.*)

    Hi John, thanks for your reply.
    So, in other words, the plugin can only link to relative paths on the same domain, and thus a redirect from https://www.example.com/subtopic/(.*) to https://subtomain.example.com/$1 is not possible? (Which has been working in an earlier version)

    Plugin Author John Godley

    (@johnny5)

    No that’s not what I mean. The plugin doesn’t care where you redirect to – relative or absolute, subdomain, external, or same domain.

    The source URL must be relative to your site. You say you have setup up a source URL of www.example.com/subtopic/(.*), which will not work. It will need to be /subtopic/(.*)

    same question here.
    the old domain is domain-old.com the new domain is ‘domain-new.nl’
    I want to redirect all tags from
    /?tag=(.*)
    to
    https://www.domain-new.nl/tag/$1/
    but I got then redirects to:

    http://www.domain-old.com/?https://www.domain-new.nl/tag/inkeerregeling/

    What do I do wrong?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Cross-domain Redirect not working’ is closed to new replies.