if i good understand your problem, you should to go:
Dashboard -> Settings -> Permalinks and in “Common Settings” section select checkbox “Custom Structure” and here paste:
/my-blog/%postname%/
and save changes. Now refresh your page and go to random post and your url should be like:
https://example.com/my-blog/this-is-the-article-name
Good luck!
Related Posts:
- Custom permalink structure only for default posts
- Pretty URL with add_query_var
- get_permalink returns default link
- Why does rewrite rule work for page not for custom post type post?
- Dynamically generate child-URLs for posts or custom posts
- URL Rewriting if it is a single post / redirecting post – post type
- Changing Permalinks for Default Post type to reflect navigation
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- Duplicate Custom Post Type and Taxonomy Slug
- Visting slug for ‘post’ post type shows 404 not archive?
- How do I Redirect a WordPress Page?
- $_GET parametters not working in an specific template
- Post-Archive like a page in a specific subdirectory
- Custom Post Type, post-formats associated to custom post type > 404 archives
- add_rewrite_rule and template redirect not working
- Remove subcategory slug from url
- How to allow WordPress to recognize a custom URL segment after a product URL and use a custom template?
- My post permalinks are redirecting to the post archive page for some reason?
- How to add a ‘News’ section to specific posts in WordPress
- Add a url parameter to the current post and read it in a shortcode
- Prevent Archive URLs
- Slug collision between page, taxonomy and custom post type
- How to add category base prefix to wordpress permalink
- Multipage Post URL correction
- Fixing the WP Post Object for Custom Route
- Posts in Page – How to customize the URL?
- Use a custom post URL that is outside the blog root directory
- Rewrite a specific Post Format to URL slug
- Overwrite URL on blog posts
- Getting 404 when using rewrite rule for posts
- How to redirect image attachment to its original post
- Blog posts are not appearing as subs of Blog Page
- How to change url of posts?
- Post pages are redirecting to the 404 page in wordpress
- Where is the old post permalink slug stored?
- Keyboard shortcut for updating a page or post?
- How to Change Order of Posts in Admin?
- get all posts ID from a category
- Manipulate post category after time
- Categories box not showing on post edit pages
- how to enable different number of revisions for different blogs when using WPMU?
- Removing the title attribute from links in the post content
- Some posts returning 404 instead of displaying post
- How to enqueue scripts depending on post formats?
- Custom function for “Submit for Review” hook
- If specific user role then sticky post
- How to add a custom field after wp post
- Submitting POST data to a custom page template triggers a 404, why?
- How to prevent WordPress from updating the modified time?
- Custom WP_QUERY $args
- Can’t get the_content of the parent page from its single post?
- How do I Show ALL posts for Catagories and Tags?
- Remove all links in post content
- Classic editor throws 403 error based on post content
- How to build a site with a map that shows where people offer and need help?
- I get this error message when I try to add a module to a course on my website using Sensei plugin
- Post categories to pages
- Publish post’s date is set to Nov 30 -0001
- WP_Query: Mixing category__in and tag__in together
- Fix existing media names with accents
- Any way for get_next_post() to use the actual post order instead of publish order?
- How to display excerpt post on hamepage and archive pages?
- Worpdress function for difference dates
- Get all comments of author’s posts
- Problems with Page Not Found
- Adding bootstrap classes to video shortcodes
- Single Post in Tab/Slider
- get_posts from a category id doesn’t work
- Change page creation layout
- Get post number both in the loop and in the post
- posts_per_page returning only one post
- After ajax image is outside the “ tag
- Sticky Post from page 2 and on
- Get images from the post
- Can WordPress handle following functionalities?
- Right align a youtube video
- Hook when post is set from published to draft?
- How to make a page show posts only from specific categories without editing php files
- Assign a day of the week to post, e.g: Assign Monday to post and have it only appear when the day is Monday
- Is it possible to query a category with specified posts?
- How do I set content in my pages so that it remains permanent while blog posts are added below?
- how to redirect page after delete post inside a post page?
- Add caption to thumbnails in content
- WordPress URL question
- How to retrieve a post by inputing the url in a custom field and displaying it on an options page
- Theme does not respect spaces between paragraphs in pages
- Custom fields in normal posts
- Modify WordPress loop after it has been run
- How to get next_posts_link working with a customised page
- exclude one child by id from $post->post_parent
- Ordering posts alphabetically by meta keys and title
- Text editor has problem with having ” in a post
- Getting posts from multiple users?
- WordPress Post Grid
- Why I getting only 1 post?
- Choose options via url
- Custom Post Type Pagination 404 Error (if paged>=2) [duplicate]
- find view post hyperlink in PHP wordpress admin file
- Even/Odd every two posts
- What function does the loop of displaying posts?