How to add custom variable in url without redirect?

There are various ways to achieve it. The most simplest one could be to make a new page and with name “en” so the slug will be mysite.com/en/

Now make the “en” page as parent of my-page-name or in other words make my-page-name as a child of en. So slug will be mysite.com/en/my-page-name/