Support » Plugin: Redirection » Redirect External Site to wordpress page?

  • Resolved w3215

    (@w3215)


    Hello. I am using the Redirection plugin. Thanks, its helpful.

    I have a few domains hosted outside of wordpress, that I want to redirect to a particular page on my wordpress.com site. How do I do this?

    For example, let’s say I own the domain coolfun.com hosted externally. And I have a wordpress site called mywpsite.com. When someone plugs in “coolfun.com” into their browser, I want them to be redirected to mywpsite.com/specialpage. (I am making up these domains)

    I have already mapped my domain (here, coolfun.com), to my wp site, (here, mywpsite.com). I am hoping the plugin can help me redirect to a specific page of mywpsite.com.

    Are there instructions for this? I have seen you reference “server redirection”, but have not found instructions.

    This is what I have tried:

    I have tried going to redirects in the plugin, clicking advanced tools, selecting URL+server in the “Match”, and then plugging in / for source url, coolfun.com in server, and mywpsite.com/specialpage in matched target.

    This seems to work sometimes, but once I start trying to redirect more than one external site, I start getting errors, saying things like “Agent: Not using redirection”.

    Also, if I have another external site to redirect to a different page on my wp site, it is not working, as it keeps redirecting all external sites to the page I selected in the first redirect, no matter what changes I make.

    Is there something else I need to do?

    Thank you.

    • This topic was modified 5 months, 3 weeks ago by  w3215.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author John Godley

    (@johnny5)

    The information is here:

    https://redirection.me/support/matching-redirects/

    The plugin cannot check server matches. You will need to do this yourself

    Thanks. Perhaps the issue is that I am not familiar with how servers work (or at least the terminology) with respect to wordpress and some other domain hosts.

    For what I want, I assume the spot to look in the link you provided is “URL and server” where it says: “This is useful if you have a subdomain or other domain that points to the same server as your main domain, and you want to redirect only on the other domain.”

    In my example: 1) external domain is coolfun.com, 2) wordpress site is mywpsite.com, and 3) target redirect is mywpsite.com/specialpage, from the docs, I assume this is how I fill things out:

    Source URL: /
    Match: URL and server
    Server: https://coolfun.com //again, this is made up for these purposes–don’t actually go to this site
    When matched: Redirect to URL with http code 301-Moved Permanently
    Matched Target: //left empty to ignore
    Unmatched Target: mywpsite.com/specialpage //also made up
    Group: Redirections Position 1 //not sure what “position” means in case that is something I need to change

    Does this look correct?

    Doesn’t seem to quite work yet. coolfun.com is either redirected to mywpsite.com (which happened just by mapping) or is redirected to another page that was a target redirect for another redirection I set up before.

    • This reply was modified 5 months, 3 weeks ago by  w3215.
    Plugin Author John Godley

    (@johnny5)

    You said that coolfun.com is mapped to mywpsite.com, and that you want coolfun.com to redirect to mywpsite.com/specialpage.

    If this is the case then your matched target will need to be a full URL – https://mywpsite.com/specialpage. If you set the unmatched then it will be anything that isn’t coolfun.com

    coolfun.com is either redirected to mywpsite.com (which happened just by mapping

    If you have another mapping elsewhere then this will prevent Redirection from working.

    Thanks. To confirm:
    1) I have mapped coolfun.com to mywpsite.com through the wordpress domain mapping settings. Is it correct to map coolfun.com to mywpsite.com or should I not do any mapping?

    2) I did not follow if you were recommending using unmatched or not. Is this the correct redirection set up:

    Source URL: /
    Match: URL and server
    Server: https://coolfun.com
    When matched: Redirect to URL with http code 301-Moved Permanently
    Matched Target: https://mywpsite.com/specialpage
    Unmatched Target:
    Group: Redirections Position 1

    • This reply was modified 5 months, 2 weeks ago by  w3215.
    Plugin Author John Godley

    (@johnny5)

    1) Both domains should be served from the same WordPress.
    2) It needs to be the matched value – you want to redirect if the URL and server matches.

    Thanks. On (1), so if a domain is hosted by an external spot like domain.com, are you saying that the plugin will NOT work to redirect that domain to the wordpress page mywpsite.com/specialpage?

    Plugin Author John Godley

    (@johnny5)

    Yes. It is impossible to redirect something that is hosted elsewhere.

    Got it–that was my confusion then. So the plugin is solely for redirecting a wordpress site to another wordpress site then.

    I’ll note that it actually did seem to work for some non-wp sites I was redirecting to wp, but it was inconsistent.

    Plugin Author John Godley

    (@johnny5)

    No, it’s for redirecting your WordPress site to anywhere.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.