x-etienne opened a new issue, #12194:
URL: https://github.com/apache/apisix/issues/12194
### Description
Hi,
These days I'm trying to replace the `Apache RewriteEngine` with `APISIX
gateway`.
Specifically, I have to publish an `angular` application localized in
multiple languages. This application uses the `route` of angular
Following the advice of the angular community, I have created n applications
for n languages.
Currently, I can manage the redirects to the various localized versions via
the `.htacces` file configured in this way.
```
RewriteEngine on
RewriteBase /
RewriteRule (^.*)\/index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ([^\/]*) $1/index.html [L]
RewriteCond %{HTTP:Accept-Language} ^en [NC]
RewriteRule ^$ /en-US/ [R]
RewriteCond %{HTTP:Accept-Language} ^it [NC]
RewriteRule ^$ /it/ [R]
RewriteCond %{HTTP:Accept-Language} !^it [NC]
RewriteRule ^$ /en-US/ [R]
```
I have tried with the various `redirect` and `proxy-rewrite` plugins but
with little luck.
I'm starting to despair, does anyone have any good ideas?
thanks in advance
### Environment
- APISIX version (run `apisix version`):
- Operating system (run `uname -a`):
- OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
- etcd version, if relevant (run `curl
http://127.0.0.1:9090/v1/server_info`):
- APISIX Dashboard version, if relevant:
- Plugin runner version, for issues related to plugin runners:
- LuaRocks version, for installation issues (run `luarocks --version`):
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]