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/
Related Posts:
- URL Rewrite for CPT single posts
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Why does wordpress still strip my query var?
- Tricky URL rewrite with custom values in url
- Add a query string to ALL links on site
- Add rewrite rule for rewrite endpoint
- add_rewrite_rule not working for language specific characters
- custom permalink/shortlink with base62 encoded post ID
- Custom query_vars and parse_request on wp-admin
- How to building pretty URLs to reflect category hierarchy?
- Rewrite custom post type URL parameters
- Help with Rewrite Rule for Custom Post Type with Query String
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- Change pagination url format
- Help with rewrite rules for two post types
- Enpoint Not Found in Rewrite Tag Permalink
- Per Page Permalink Structure for Page Post Type
- Rewrite /category/cars into /topics/cars
- custom wordpress rewrite
- Get wordpress installation folder
- How to use wp rewrite to hide form action url?
- WordPress Rewrite rule is not working
- How to change an existing wordpress page rewrite rule?
- wordpress path generation from rewrite rule
- add_rewrite_rule() issue with parent/child/child page
- Multiple Taxonomy Items for Separate URLs
- Dynamic URL with rewrite rule not working
- How do I rewrite URL that has custom parameter
- a way to support totally different url structure
- Pagination appearing twice in URL after rewrite
- Rename page URL
- WordPress post-type create url rewriting
- help with rewrite_tag and rewrite_rule for custom page GET variables [duplicate]
- Rewrite URLs in a Custom Post Type with Multiple Taxonomies
- add_rewrite_rule doesn’t work when trying to add a new parameter at the end of URL
- Using custom/dynamic “slug” for a page
- How do I remove a rewrite rule?
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- Clash of the rewrites
- How-to add rewrite rules to point the uploads folder to a subdomain
- Disable wordpress pagination URL rewrite for specific page
- How to use Post Custom Metadata in Post Titles and Post Permalinks
- rewrite_rule() not preserving the query string
- Appending numbers to url do not break the link
- Custom rewrite rules are sending everything to index.php
- WordPress Network on IIS7/SQL Server – Rewrite Issues
- Custom comments
- Custom rewrite rules for feeds of custom queries (query_var query strings in URL)?
- WordPress 404 unless there is a space in url
- Migrating a page to be an article
- Permalinks, Rewrites, Get Variables, Oh My!
- How to get “extended” path info from URL in a plugin
- Rewriting rules: difference between ‘init’, ‘rewrite_rules_array’, ‘generate_rewrite_rules’?
- Multiple Permalinks for Same Post
- How to perform a query at the URL?
- Is there a way to create alias without using htacess, permalinks or delving into code?
- Remove “/page/1” from the URL
- hard flush_rewrite_rules() not regenerating .htaccess
- Rewrite Rules Are Redirecting and Not Passing VARs
- WordPress rewrite rules don’t need ^?
- Custom rewrite not working
- My WP_options db rewrite_rules Does Not Work
- Disable Pagination on Pages
- How to add a Rewrite Rule / Category Structure
- Custom rewrite_rules – only pass numbers and not alphabetic characters
- How to add a custom redirect rule for Post as subdomains?
- How to preserve the query string while using add_rewrite_rule and default public query vars
- How do I display only the parent page in the url
- How to use add_rewrite_rule in subdomain
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- Rewrite the default post object’s permalink
- Custom Rewrite Rules
- URL Rewrite with Custom Variables
- show ALL latest posts with archive.php on example.com/latest
- Adding a query string to only one page url
- Redirect URL to an existing page with query string or #! added on
- remove archive from url :: marketpress
- Trying to add array of paths to post permalink
- How to rewrite URL back to default custom URL if no destination found
- Use URI suffix as parameter and ignore when resolving page
- add_rewrite_rule with optional parameters
- Why wordpress rewrite my custom URL?
- Rewrite rule regex help required
- Redirect empty search to another page
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- Rewrite rule not working, suspect redirect string
- Rewrite Rule added but showing 404 rather than specified page
- Custom taxonomy Rewrite Rule
- Direct Dynamic URL in root to a location within template
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- Font Page overrides rewrites
- rewrite rule for home/index page
- WordPress Custom Rewrite Rule
- Additional .htaccess rules based on wp page
- URL Rewriting in WordPress
- Rewrite URL variable to custom path
- Lost WordPress website access after changing URL [closed]
- Wrong rewrite rules