eZ Platform Discussions

Add RewriteRule at the application level

I have 20,000 redirections to set up on the redesign of my site.
My project is hosted on platform.sh.
Apparently, managing 20,000 redirections with their system is not possible.

I have to manage this at the application level.

I have all the redirections to set up, in Apache format.

RewriteRule ^Contact$     /formulaires/contactez-nous  [R=301,L]
RewriteRule ^article-mois-11.htm$     /actualites/sommet-de-l-elevage-14869  [R=301,L]

What’s the best way to do that?

Hi Remy

We implemented a redirection manager for the admin UI in the NovaeZSeoBundle latest release : https://github.com/Novactive/NovaeZSEOBundle/releases

Regards

1 Like

We finally worked with platform.sh to set up their redirection system.

"www.site1.com":
    redirects:
        paths:
            '/page-a/':
                to: 'www.site1.com/newpage-a'
                code: 301
                append_suffix: false

And contrary to what they told us at the beginning, it works.

https://docs.platform.sh/configuration/routes/redirects.html#redirects