Import nginx redirects

Hi there, I know I can create nginx redirects using the UI, but I have a site that needs about 500 individual redirects (I know, that’s bad - but it is required for some time and regexes won’t work).

It would be great if would be a possibility to import that redirections.

Another question: When I manually edit the redirects.conf, the redirections don’t appear in the Cleavr UI. Is it ok to manually edit this file, even if the redirects don’t appear or is this a problem?

Hello Sewid,

I am not quite sure about importing redirects. But I will get back to you if I find anything or maybe someone from the community could be of some help here.

While editing redirects.conf from the server itself Cleavr can’t sync with your server so they don’t appear in Cleavr UI. It’s okay to manually edit it if you’re sure about what you’re doing but that may bring some unexpected behavior like not appearing in the Cleavr UI.

Hi anish, manually editing would be ok for me too - as long as Cleavr has no problems with my manual edits.

Hello Sewid,

If you’re sure about what you’re doing, you can go for it.

1 Like

You can add your redirects into the nginx config screen. It’s ugly, but it will work.
From time to time I have also long lists of redirects and redirecting them on server level doesn’t provide any information about how long you need to keep them. 1 years 2 or 3 years? I see some redirects I add right into WordPress which are active for more than 5 years.

1 Like