Set permalink to (Post Name)
or
http://www.example.com/[blog_name]`/%post_id%/%postname%/`
Add following code to functions.php
of your theme:
add_filter ( 'alias_rule', 'xili_language_trans_slug_qv' ) ;
function xl_permalinks_init () {
global $XL_Permalinks_rules;
if (class_exists('XL_Permalinks_rules') ) {
$XL_Permalinks_rules = new XL_Permalinks_rules ();
add_permastruct ( 'language', '%lang%', true, 1 );
add_permastruct ( 'language', '%lang%', array('with_front' => false) );
}
}
Related Posts:
- Change the “page” slug in pagination
- Change author base slug for different roles
- Using custom/dynamic “slug” for a page
- Display posts with author in the url with custom post types
- How to seamlessly redirect between different archive and singular slugs?
- How to add dot(“.”) in post slug
- How to change default page slug?
- Handle category name URL rewrite before different post type slugs
- custom htaccess rewrite rule for page
- Why is there /index.php/ in all my links? How do I remove it?
- Multilingual theme: Changing locale based on URL
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Multiple Permalinks for Same Post
- Adding more pages to author pages
- Using Blog Parent Slug on Blog Posts Only
- Load a template page based on part of slug in wordpress
- Removing “category” from URLs then “add_endpoint()” won’t work…
- Use custom template on certain URLs
- How do I change attachment slug from name to id
- Access files at new location using old file paths
- Adding special characters to slug?
- Rewrite URLs – Custom Post Type – Post Slug, Taxonamy Slug
- Translate custom post type and taxonomy slug in URL?
- Preserve old website URL structure after migrating to WordPress
- WPML language switcher for custom rewrite rules
- How to change the Author Slug from Username to Nickname and deal with Special Characters
- How to change custom post type slug
- Disable WordPress from changing URL slug when post is published
- Using URL rewrite to add custom URL for custom post type
- One off rewrite for single post-type slug (show normal page with same URL instead)
- Can’t use a specific custom URL (slug)?
- How to transform multiple parameter URL to clean URL
- Make the home page’s slug visible in the browser’s URL bar
- Trying to add array of paths to post permalink
- Changing the wordpress default search url to something like – …example.com/search?query=keyword
- How to add dot(“.”) in post slug
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- Change author base and slug in author link
- WordPress numeric (yearly) page names / disable yearly archives
- Post & Page with same slug
- How to add 2 variable rewrite rule?
- taxonomy term in URL slug won’t forward to the correct term for custom post like it does for default categories/normal posts
- Remove Page Slug from URL
- Needed to change slug to access page
- What’s the best approach to do this?
- Pagination posts. Url format
- Change the slug ( url ) to a sequence number starting from 0 in the custom record type?
- Remove taxonomy base or term from url
- Unique URL Every Time
- Rewrite default post type
- Rewrite Rules for Multiple (more than 2) Taxonomies
- Using plus (+) sign instead of space (-) in WordPress URL
- Google is indexing wordpress attachment pages
- SEO Friendly URLs for my plugin categories
- How to create a specific frontend URL (not a Page) from a theme or plugin?
- Pretty URLs or permalinks for attachments
- Taking a value from PHP_URL_PATH won’t work after WordPress 5.5 update
- Server (WordPress) redirects files that are not supposed to (using htaccess)
- Dynamically redirect page based on URL?
- custom url rewrite
- Regionalised Content
- WordPress plugin Write User/staff ID as the same as the WordPress User ID
- Map alt domain to specific section of website w/o MU
- Get the category is not working on url
- Remap URLs from Relative to Absolute
- Help with static front page blog at /blog
- Double domain name in category URL-s
- 404 error- issues with pages after adding custom rules for posts
- WP is ignoring .htaccess rewritten URL
- Change pagination url format
- How to write Rewrite rule for same path using Rewrite API?
- Custom rewrite after the default term link URL
- How can I reduce the number of rewrite rules?
- Create a page that can be used for different URLs
- Capturing /page-name/[0-99999] in both template and number
- custom wordpress rewrite
- Keep requested/entered url with add_rewrite_rule
- Rewrite Rule for homepage not working correctly
- Adding Rewrite URL for Base + Children Separately
- URL rewrite( I think? )
- WordPress how to prevent URL encoding in URL of taxonomy terms
- loading images, css and fonts from site url
- How can I add a vanity URL for admin-ajax.php Calls?
- Remove part from dynamic url and redirect
- How to Update / Change URL when Popup Modal Loads?
- How wordpress core include search.php with $_GET[‘s’]?
- Pretty URL via Rewrite
- Routing in WordPress
- Stop wordpress from prettify URL
- Moved WordPress to Subdirectory, still hijacking requests to files outside of its directory
- Rewrite URL query string for all pages
- Need help with custom rewrite rule
- Relative URL filtering
- how to change some of the rules in the database
- Rewriting URL does not automatically log me in
- Custom Rewrite for Profiles
- how rewrite is working in wordpress
- How to prevent URL-modification when page title contains digits only?
- Rewrite rule to simulate page hierarchy results in 404
- Custom post type Premalinks main page and details page