I would like to redirect the website launch(home) page to add '/en/' at the end of the launch URL for multi language.
I tried in BVN404handler by adding source URL as just '/' and target url as just '/en/' but this is causing issues for other redirects that already exists. it's causing recursive redirects by keep adding /en/en/en/.. for every other redirects that exists.
Could some one please sugegst the best way to implement this ?
Do you need to use the 404 handler for this? I suspect you'd struggle to make this work, not least because that only redirects on URLs which return a 404 and '/' should always return a page (assuming you have a site set up on that host). I'd probably set up the redirect in the web.config using URL rewrite rules like this:
<rule name="Redirect Root">
<match url="^$" />
<action type="Redirect" url="/en/" />