Skip to content

Rewrites are not working as index.html ends up being served from static #1

@BeOleg

Description

@BeOleg

This helper helps us run more than one react project in different directories under the same domain.

we need the following rewrites:

Original URL Rewritten URL
https://n.exchange/?lang=RU https://n.exchange/?lang=ru
https://n.exchange/?lang=RU&cur_from=CARDUSD&cur_to=BTC https://n.exchange/?lang=ru&pair=BTCUSD
https://n.exchange/?lang=RU&cur_from=CARDUSD&cur_to=BTC&ref=MyAwesomeRef https://n.exchange/?lang=ru&pair=BTCUSD&ref=MyAwesomeRef
Any combination of the above

Problem: index.html gets served via the express static server and this logic never happens.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions