Hi,
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:
https://xpto.com/indico/conferenceDisplay.py?confId=399
New one it will be:
https://xpto.com/conferenceDisplay.py?confId=399
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
Hi,
As discussed in the theread:
https://talk.getindico.io/t/need-help-upgrading-from-indico-0-99/180/
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).
Hi,
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