• Resolved Jochem

    (@jochemvandrimmelen)


    Hi,

    I created a redirect to a subdomain, using the same names: domain.com/abc should redirect to abc.domain.com. Somehow this is not working properly. There is no URL redirect, but the subdomain’s header and a list of blogs are loaded. The actual body content provides a ‘page not found’ (404?). The links go to the actual blog URLs.

    However, domain.com/xyz does correctly redirect to abc.domain.com. Is it failing because /abc and abc. are not supposed to be the same? What else might be the issue?

    I used the following settings:

    Source URL: /abc
    Query parameters: Exact match
    Match: URL only
    When matched: Redirect to URL
    HTTP code: 301
    Target URL: https://abc.domain.com

    • This topic was modified 4 years, 6 months ago by Jochem.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author John Godley

    (@johnny5)

    In what way is it not working? You say the subdomain is loaded, which implies that it is working. It is not the responsibility of Redirection to ensure your target URL loads properly.

    Can you use real URLs?

    Thread Starter Jochem

    (@jochemvandrimmelen)

    Hi @johnny5 ,

    Thanks for looking into this. https://jochemvandrimmelen.nl/ivn is supposed to redirect to https://ivn.jochemvandrimmelen.nl. I used the aforementioned settings. When I redirect /ivn it is not working, but when I change that into /ivn2 or anything else, it does work as intended.

    I uploaded a screenshot of the console settings, so you can check my settings.

    Cheers,
    Jochem

    Plugin Author John Godley

    (@johnny5)

    Ok, so why would one work and not the other? This will be something specific to your site, such as a cache.

    https://redirection.me/support/problems/url-not-redirecting/

    Thread Starter Jochem

    (@jochemvandrimmelen)

    It’s not a matter of clearing cache. I cleared it and it didn’t result in a correct redirect. I also tried two other browsers which have no history with this website, and those too failed.

    Plugin Author John Godley

    (@johnny5)

    That is as may be, but the problem is specific to your site, and the most likely explanation is that /ivn has been cached without a redirection, while /ivn2 has.

    I can see the header x-cache-enabled: True is applied to /ivn/

    You may have more than one cache, or your hosting provider may be caching things also.

    This is not related to browser cache.

    Thread Starter Jochem

    (@jochemvandrimmelen)

    Hmm, interesting. I’ll dig into it and see how I can fix that. Thanks again for looking into this!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘domain/abc redirect to abc.domain not working’ is closed to new replies.