Question with using monitoring through WPMU Dev

Hi,

I'm trying to activate Monitor your website within WPMU Dev, at https://premium.wpmudev.org/hub/my-websites/?site_id=1231466&tab_slug=uptime.

This gives me an error though:

<Message Reported>
It appears that your home_url setting is trying to redirect to another domain. This often happens when you are forcing https but haven't updated your site setting for that. Please verify that the home_url option of your WP install is correct, then click refresh updates in the Dashboard plugin.
</Message Reported>

The only reason I can think of for this, is that my multisite (located at http://inflatableworldoz.com.au/stadiums) actually redirects to http://inflatableworldoz.com.au. Under /stadiums there are a number of stadiums, which can be reached manually (such as http://www.inflatableworldoz.com.au/stadiums/tullamarine/).

So does this mean I can't use WPMU Dev to monitor the update of my site, because I require this redirect for the home page? Or is there a workaround that will get me past this?

Thanks.

Darryl

  • Adam Czajczyk
    • Support Gorilla

    Hello Darryl

    I hope you're well today and thank you for your question!

    The Hub (and e.g. Uptime monitoring as a consequence) takes the site URL from WP settings. In case of the Multisite it's the main site of the multisite. If there's an 'unexpected" redirect - meaning inconsistency between site configuration and what URL actually loads - that might break things.

    I'm not quite sure if I do understand your setup though.

    I can see that registered site in The Hub is a Multisite at inflatableworldz.com/stadiums. Therefore this would be the main site of the Multisite. It does, indeed, redirect to the inflatableworlds.com though with "307 Temporary Redirect". So one way or anotehr the /stadiums site is inaccessible anyway - is there any reason for such setup?

    I'm asking because the ideal scenario would be if that page either wouldn't redirect or the inflatableworlds.com was just set as a main site of the multisite - redirect could be kept then but it would solve some issues such as e.g. monitoring.

    Let me know please.

    I admit though that I never dealt with 307-type redirect in case of our Uptime service so meanwhile I also asked our developers for consultation on "redirects vs uptime montoring".

    Kind regards,
    Adam

  • Darryl
    • New Recruit

    Hi Adam,

    Thank you for your reply.

    The reason for my set up is that my landing page is inflatableworldoz.com.au, which is a PHP page (ie not Wordpress). From here customers can select which "stadium" they want to go to, which redirects them to the multisite at inflatableworldoz.com.au/stadiums/<stadiumname> (eg https://inflatableworldoz.com.au/stadiums/tullamarine). If a customer were to end up on inflatableworldoz.com.au/stadiums it would be invalid, hence the redirect to inflatableworldoz.com.au.

    The fact it's a 307 temporary redirect and not a 301 is because the person who set it up did it wrong; thank you for bringing that to my attention and I will get that fixed!

    So given I don't want /stadiums to be accessible (only the sub-sites) does that mean I can't use this monitoring service?

    Thanks.

    Darryl

  • Adam Czajczyk
    • Support Gorilla

    Hello Darryl

    Thank you for your response!

    This is quite an unusual situation and setup I must say. The 307 redirect (I consulted it to make sure) wouldn't be followed by Uptime monitor as you, rightfully, noticed it's just "wrong". it's a redirect that should be used for POST requests rather than a "plain redirect".

    If you change it to 301 or 302 ("permanent" or "temporary") that should be fine but then another aspect comes to play: we're WordPress-focused company and all our services are for/related to WordPress. Additionally Uptime, Managed Backups and so on - they are available for WPMU DEV Members and require site to be connected and authorized to our API. In this scenario, the "inflatableworldoz.com.au" and "inflatableworldoz.com.au/stadiums" are in fact two separate sites (even though it doesn't look like that for a human visitor) and the former is not even a WordPress site.

    This might pose the problem and to be perfectly honest I've never tested such scenario and never even encountered such setup among the site of WPMU DEV Members (a non-WordPress site cannot be registered to The Hub). I think you should take care of that redirect status (to make it 301 or 302 instead of 307) and see if that makes Uptime work with the site but if it doesn't, I'm afraid there's not much we can do as site being registered with The Hub is a requirement for Uptime and non-WP sites (to which your /stadiums redirecst) can't be registered.

    Kind regards,
    Adam

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.