I suggest starting with configuration Antora to generate an .htaccess file from the page-aliases and then figuring out how to combine the generated .htaccess with the already-present one.
About how many redirects are involved? thanks David Jencks > On Jun 11, 2020, at 6:02 AM, Zoran Regvart <zo...@regvart.com> wrote: > > Hi Peter, > you can add redirects to the .htaccess[1] file, > > zoran > > [1] https://github.com/apache/camel-website/blob/master/static/.htaccess > > On Thu, Jun 11, 2020 at 11:34 AM Peter Palaga <ppal...@redhat.com> wrote: >> >> Hi Zoran, >> >> we had too many asciidoc files in one directory, all of which related >> either to user guide or to contributor guide. So I decided to split >> those into their respective directories. I ensured that redirects were >> supported by Antora before doing it, but as I mentioned in this thread >> already, I was not right assuming that setting :page-aliases: in >> AsciiDoc were enough. >> >> Is there a different way (that currently works on camel.apache.org) for >> setting redirects? >> >> Thanks, >> >> -- Peter >> >> >> On 10/06/2020 20:59, Zoran Regvart wrote: >>> Hi Peter, >>> I'm not at all clear as to why is this required, can you elaborate? >>> >>> zoran >>> >>> On Tue, Jun 9, 2020 at 3:24 PM Peter Palaga <ppal...@redhat.com> wrote: >>>> >>>> Hi, >>>> >>>> I thought it was enough to set :page-aliases: in AsciiDoc as in [1] >>>> (because it worked when I tested locally) but apparently it does not >>>> work on camel.apache.org: >>>> >>>> https://camel.apache.org/camel-quarkus/latest/first-steps.html should >>>> redirect to >>>> https://camel.apache.org/camel-quarkus/latest/user-guide/first-steps.html >>>> but does not. >>>> >>>> Anybody please knows how to fix this? >>>> >>>> [1] >>>> https://github.com/apache/camel-quarkus/blame/master/docs/modules/ROOT/pages/user-guide/first-steps.adoc#L2 >>>> >>>> Thanks, >>>> >>>> -- Peter >>>> >>> >>> >> > > > -- > Zoran Regvart