You don’t do that with your permalinks. You can do what you want in WordPress Settings.
- Go to your WordPress dashboard, 2. Click “Settings”, 3. Click General. 4. In the “Site Address (URL)” Box remove the “blog” part like this –> “http://site.myurl.com/
NOTE: DON’T CHANGE THE WORDPRESS ADDRESS URL!!! Only change the Site Address
Here is a screenshot
Related Posts:
- Custom permalink structure only for default posts
- Custom post type single (permalink) throws a 404 error
- Custom post type permalinks breaking due to 3.1 bug fix
- Blog Posts in Custom Menu
- How to make number of blog posts a custom field?
- Move first half of posts to one parent page, second half to the other page
- WordPress Query Posts From Category Post on Static Page
- register_post_type permalink
- Post titles and thumbnails as links to custom post types?
- Changing permalink of WordPress
- Custom Post Types and Broken Permalinks
- My posts page is missing the page title
- Permalink base only for posts
- Append a random string to a post permalink
- How can I have the posts from one word press blog show on the presentation page of another word press site
- Default post type doesn’t display in url
- Changes done in admin panel are taking time to reflect in the REST api responses
- Need to show birthday of custom post type(Famous people in this case) in elementor. Date of birth set in custom fields
- Permalink issue with new blog posts > getting 301 redirect
- Posting blog entries in screenplay format
- Visting slug for ‘post’ post type shows 404 not archive?
- Remove Custom Post Type Slug and add Custom Taxonomy to Permalink Structure?
- Take a received feedback item, turn it into a post
- Getting value from get_post_custom
- WP Admin register taxonomy and post type performance
- Add a custom meta box in the post options that loads some html code in the header
- Static posts page with home.php
- Any way for get_next_post() to use the actual post order instead of publish order?
- Calling Different Custom Post Timestamps in a table
- how do i add posts-page slug before posts slug in permalinks
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Admin – create custom post status and display above table
- custom post template file not shown, instead all the time 404.php
- Set Default Category to Username
- How to allow visitors to filter posts by multiple taxonomies
- show custom post type category dropdown sorting result on same page
- Custom Post Type Rewrite To Include Parent Page(s)
- Permalink doesn’t get displayed in Twitter button (Local WordPress problem?)
- Retrieve post ID from “querying” URL
- Thumbnail & Category link aside post
- hiding permalink in admin if the user is subscriber
- Why does WP_Post not contain its permalink?
- the_permalink() not working in a root installation
- Single.php – Get Current Parent Category
- How to remove in-line style of WordPress’s post content only?
- When changing pages to posts, how do you set up 301 redirects for the page URLs?
- How to include my own css in post
- Custom post types related to same custom post type?
- How do I insert a post with custom post type and relate it to a custom taxonomy?
- Dynamically switch template on click
- “about us”, ” contact” sections should be article(post) or page in the simple small Business website?
- Is it possible to customize the post according to post format in single.php?
- Customize rel=canonical tag for single blog post
- a little direction on custom post type
- disable Tab post on nav-menus page (Admin)
- Second get_permalink inside loop points to wrong URL
- WP move posts to different path
- Format latest/newest post differently
- Custom taxonomy archive page problem
- Tell WP to use a specific template file in posts
- Is there a way to create a meta box that can be added multiple times to a post dynamically?
- relating business and products with custom taxonomy?
- Append ‘Continue Reading’ link if post length is more than 3 lines of text?
- Best Way to Add UnEditable HTML to Posts
- How safe is it to delete old posts edits to save database space?
- older blog posts not showing in new theme
- Two Custom Post Types with Identical Articles Competing for the same Slug
- Custom Post Type archive
- WordPress custom post type with folder structure in slug
- Using setup_postdata() with multi-dimensional array
- Is codex right on deleting post?
- Custom Permalink Structure for Pages & Posts
- Why won’t pagination work?
- Check if a custom post type has already been created
- Edit multiple custom post types while saving a new or edited post
- Create a custom posts page
- How to add automatically bootstrap 4 order-lg-1 and order-lg-2 classes for columns in foreach loop based on the count?
- if in category but only with post meta
- How to get different Related Posts
- custom word in custom permalink structure
- How to add convenient buttons for new custom post statuses
- How to allow multiple thumbnail upload for Posts?
- add external project to web site wordpress on production
- How to create a page that shows the last 10 posts?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- Show custom post with custom categories with specific slug
- Display the 2nd category name of a custom post type without error if its null?
- Updating permalink structure using ‘post_link’ filter results in 404 error for posts
- Post is blank when I click on the link
- Auto delete posts based on content text
- How to call posts under a specific category on static front page?
- Querying another post category to match current post and display in loop
- Custom home page with full post for first one only
- How to get the latest URL of my blog?
- Custom Post Limit for homepage only without plugin?
- Custom permalink for each post
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Display value of custom field at the beginning of a post
- Unabled to Change Permalinks – Even Using the “Edit” (Resets to Original Permalink on “Update”)
- l accidentally permanently deleted a Draft. There’s any way I can recover it?