Help with NGINX configuration (Angular / I18N / prerender.io)

Job ID: 31977020

Budget: $10 – $30 USD

Hi,

We're having an Angular project we want to integrate with https://prerender.io.

We're almost there, except that we're not able to get the localization part right.

Currently, the NGINX.conf-file works as expected given that the $prerender=1.

If $prerender=0, it redirects all requests to /index.html. Instead, we need it to redirect these requests to either /en/index.html, /nb/index.html or /nn/index.html (English / Norwegian versions of the page).
Related categories: Nginx Angular