Use the field in the admin Settings > Permalinks
page to set your permalink structure to /blog/%year%/%monthnum%/%postname%/
.
To prevent custom post types from inheriting the post permalink structure, set with_front
to false
in your register_post_type
arguments for all custom post types.
Version 4.4 also added the register_post_type_args
filter to allow modification of post type arguments for types registered by code you don’t have access to change.
Related Posts:
- Two (or more) parallel (sub-)TLDs that are retained when surfing the site / dynamically set the site address?
- redirect 301 old url to new url
- Changing WordPress blog name and web address
- How to rewrite url wordpress?
- How do I retain url parameters the entire time a user browses my site?
- How to achieve my custom post url structure?
- wordpress url correction
- Redirect htaccess [closed]
- Replace “http://localhost:8888/” by website URL in WordPress
- Two sets of url one content?
- change the url in wordpress
- Get logged in username in wordpress url
- URL problem: www.sitename.com/blog and www.sitename.com/learn using same WP installation
- how to move another machine or server without dealing with IP
- loading images, css and fonts from site url
- WordPress is adding “category” word before my actual category name in url (and this is unsolicited)
- WP returns to domain root instead of siteurl
- Homepage cannot be found
- Error 404 wordpress redirecting URL
- How to retrive previous Domain URL in Wp
- Lost WordPress website access after changing URL [closed]
- WordPress is adding pagination for all pages like www.example.com/page/123. How to remove that?
- Masking wp-content/themes/name/images to just images directory using htaccess
- How do I remove a rewrite rule?
- Use subdomain for certain urls
- Can I call a custom plugin with a direct URL
- Custom slug in front of search URL
- Display posts with author in the url with custom post types
- How-to add rewrite rules to point the uploads folder to a subdomain
- Create built-in pages without creating actual pages
- Can ‘numberposts’ be passed in the URL query string?
- Mod_rewrite delete parameter in 301 Redirect
- add_rewrite_rule not working for page var
- Adding the amp url prefix to the beginning
- Tricky URL rewrite with custom values in url
- Search url wp-rewrite after redirect?
- URL rewriting for WordPress Network (Multisite) subsite
- Add a query string to ALL links on site
- How make a multi language routes, with rewrite rules or rewrite endpoints?
- Add rewrite rule for rewrite endpoint
- Issue with using .htaccess to redirect feedburner feed
- add_rewrite_rule() to route to file other than index.php
- ‘rewrite_rules_array’ or ‘generate_rewrite_rules’ for adding custom rewrite rules?
- Custom rewrite not working
- Changing WordPress Address URL disaster
- Prevent WordPress from Rewriting URL for one template
- WordPress 3.9 breaks invalid permalinks.. code fix possible?
- Hide admin login without plugin
- Need help with simple rewrite rule (shouldn’t this be easy?)
- Trying to find the location of a rewrite of the URL query
- “View post” leads to odd URL
- Redirect HTTP to HTTPS for all sub domains (blog posts)
- Get url param no longer works when using add_rewrite_rule
- Why is WordPress rewriting absolute URLs on staging site to include staging prefix when we manually point them at the live site?
- How to create a URL Rewrite rule?
- How can I redirect product url to category then product url?
- Map secondary domain to other’s virtual subfolder
- adding custom controller called by front-end
- rewrite attachment url with attachment title
- WordPress search rewriting
- Enpoint Not Found in Rewrite Tag Permalink
- Custom Rewrite Rules
- URL Rewrite with Custom Variables
- htaccess rewrite, adding segment to url
- Custom Download Link
- Rewrite /category/cars into /topics/cars
- show ALL latest posts with archive.php on example.com/latest
- Url rewrite with htaccess
- Custom Structure permalinks error 404
- WordPress Rewrite rule is not working
- Add extra optional text to permalink e.g. “-with-*”
- change url for portfolio image
- remove archive from url :: marketpress
- Use URI suffix as parameter and ignore when resolving page
- How to change url of specific posts with name of a root page
- Why wordpress rewrite my custom URL?
- Rewrite dynamic URLs as pretty URLs in WordPress functions.php (add_rewrite_rule) – what’s wrong with my code?
- Change author base and slug in author link
- Rewrite rule not working, suspect redirect string
- WordPress index in subdirectory, blogposts in root directory
- Fresh install redirects to www, breaking page loads
- Rewrite Url using .htaccess or hook
- How to change URL of my pages?
- How to use a RewriteRule to change endpoint url
- Custom taxonomy 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
- I want to add one extra field to my URLs, I’m using Rewrite functions but it doesn’t work
- .htaccess RewriteRule to include post type and taxonomy
- rewrite rule for home/index page
- WPNetwork with custom URL Rewrite rules
- WordPress index page is returning 404 and admin page requires /index.php in url
- Stop wordpress to redirecting home page if no page found
- Additional .htaccess rules based on wp page
- Rewrite URL variable to custom path
- Own code on index.php wordpress theme file, help with the rewrite rules
- URL rewrites af
- redirect word-press page with page values
- How to change search url produced by ‘s GET method?
- permalinks url with woocommerce
- add_rewrite_rule not working with custom variables