You are viewing a plain text version of this content. The canonical link for it is here.
Posted to site-dev@apache.org by sebb <se...@gmail.com> on 2023/07/06 08:52:12 UTC

Re: [www-site] branch main updated: Redirect to new uptime page

On Thu, 6 Jul 2023 at 08:12, <hu...@apache.org> wrote:
>
> This is an automated email from the ASF dual-hosted git repository.
>
> humbedooh pushed a commit to branch main
> in repository https://gitbox.apache.org/repos/asf/www-site.git
>
>
> The following commit(s) were added to refs/heads/main by this push:
>      new a7baabaa4 Redirect to new uptime page
> a7baabaa4 is described below
>
> commit a7baabaa495339c09c4f623828632c351fdc214a
> Author: Daniel Gruno <hu...@apache.org>
> AuthorDate: Thu Jul 6 09:12:43 2023 +0200
>
>     Redirect to new uptime page
> ---
>  content/uptime/.htaccess | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
>
> diff --git a/content/uptime/.htaccess b/content/uptime/.htaccess
> index dbf836466..d0c5df890 100644
> --- a/content/uptime/.htaccess
> +++ b/content/uptime/.htaccess
> @@ -1,4 +1,2 @@
> -RewriteEngine On
> -RewriteCond %{REQUEST_URI} "^/uptime$"
> -RewriteRule ^$ /uptime/ [R=302]
> -RewriteRule ^/?(.*)$ https://infra-reports.apache.org/uptime/$1 [P]
> +# Moved to the new infra dashboard
> +Redirect https://infra-reports.apache.org/#uptime

Seems to me that's the wrong fix.
If the infra-reports URLs change, then it should do the redirect, not
any sites that reference the URL.

In general, it is not possible to change all downstream references, so
the host site (i.e. infra-reports) must be responsible for the
redirects.

As it stands, any references to the following no longer work:

https://infra-reports.apache.org/uptime/

Sebb