On Wed, 1 Nov 2023 at 16:59, Daniel Gruno <humbed...@apache.org> wrote:
>
> On 2023-10-31 14:42, sebb wrote:
> > On Tue, 31 Oct 2023 at 17:34, Daniel Gruno <humbed...@apache.org> wrote:
> >>
> >> On 2023-10-31 12:27, Daniel Gruno wrote:
> >>> On 2023-10-31 12:17, sebb wrote:
> >>>> On Tue, 31 Oct 2023 at 09:57, sebb <seb...@gmail.com> wrote:
> >>>>>
> >>>>> Try adding .html at the end. I think that used to be done
> >>>>> automatically, but no longer seems to be happening.
> >>>>
> >>>> I checked, and it did work previously:
> >>>> https://www-previous.staged.apache.org/events/current-event
> >>>> (note that the redirect works, but goes to the old site, so please
> >>>> ignore the final contents)
> >>>
> >>> There is a redirect in place, but it's not being honored because
> >>> 'FileInfo' type directives (redirects) are not allowed on www.a.o via
> >>> .htaccess. This should be addressed instead, which I am doing now.
> >
> > However other redirects were working.
>
> Yes, it turned out to be a sort of red herring. The root cause is that a
> .htaccess file works with its directory as the root for URIs, so in this
> case, /events/foo won't be matched, but /foo will, as /events is
> implied.

Sorry, but that does not appear to be correct.
If it is the case, why is it that the .htaccess file under /dev is working?

All its entries have a /dev prefix:
https://github.com/apache/www-site/blob/main/content/dev/.htaccess

> The .htaccess has been sorted out, and redirects are working again.

Yes, by reverting the change that dropped the /events path segment.

Redirection of current-event (without .html) needs the corresponding
file to be present; I don't know why that is.

> >
> >> There seems to be conflicting directives in the mix, which are causing
> >> issues (the events/.htaccess is not being honored at all).
> >
> > I don't think that is correct, as the redirect for current-events.html
> > is being honoured from that file.
> > Besides, the redirect does work when there is a dummy 'current-events' file.
> > See the preview/currentevent staging site.
> >
> >> Some cleanup
> >> should preferably be done, moving these redirects into one unified
> >> .htaccess file or rewrite map at the root.
> >
> > Perhaps, but that is a separate issue.
> >
> >>>
> >>>
> >>>>
> >>>> I've submitted a PR to fix it going forward:
> >>>> https://github.com/apache/www-site/pull/323
> >>>>
> >>>>> Note that a new method is now recommended, see:
> >>>>>
> >>>>> https://www.apache.org/events/README.txt
> >>>>> (as linked from the Whimsy page)
> >>>>>
> >>>>> On Tue, 31 Oct 2023 at 08:53, tison <wander4...@gmail.com> wrote:
> >>>>>>
> >>>>>> Whimsy guides podlings to add a link to
> >>>>>> https://www.apache.org/events/current-event.
> >>>>>>
> >>>>>> But this page is now 404. Is it moved or what we should update it with?
> >>>>>>
> >>>>>> Best,
> >>>>>> tison.
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> >>>> For additional commands, e-mail: dev-h...@community.apache.org
> >>>>
> >>>
> >>>
> >>> ---------------------------------------------------------------------
> >>> To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> >>> For additional commands, e-mail: dev-h...@community.apache.org
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> >> For additional commands, e-mail: dev-h...@community.apache.org
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> > For additional commands, e-mail: dev-h...@community.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
> For additional commands, e-mail: dev-h...@community.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@community.apache.org
For additional commands, e-mail: dev-h...@community.apache.org

Reply via email to