URL compatibility to new instance

I’ve setup a new instance of indico at a new VM. But now i need to keep the URL compatibility to the old version I had:

Old version:

New one it will be:

I’ve tried to put a rewrite condition at indico.conf of httpd but didn’t work, any idea on how can i get this:

            RewriteEngine On
            RedirectMatch ^/indico/(.*)$ https://xpto.com/$1

As discussed in the theread:

RewriteEngine On
RewriteRule ^/indico/(.*)$ /$1 [R=permanent,L]

in indico.conf works for us.

The rewrite rule from @tak0222 should be fine, just make sure ROUTE_OLD_URLS = True is in your indico.conf (this is most likely already the case if you migrated and specified so during the setup wizard).


Thanks i’ve made it with the rule:

RewriteRule ^/indico(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

At my httpd indico.conf.

and the ROUT_OLD_URLS was already set to TRUE since the upgrade.

Thanks very much for your help.

Kind regards,
Hugo Gomes