You don’t need custom rewrites for that, you can simply use the permalinks settings to achieve those results. Click the Custom Structure option and enter:
/blog/%year%/%monthnum%/%postname%.html
Related Posts:
- How to rewrite URL with PHP variables with htaccess to a normal looking URL?
- How to change home or site url using action hooks or filter?
- subdirectory index.php is not working
- How To Use htaccess to Rewrite Link Structure for a Page that is Generated Programatcially
- How to create custom 401, 403 and 500 error pages?
- WordPress and magic quotes
- Reposition WooCommerce breadcrumb outside of wrapper content
- Change the actual (or viewable) WordPress directory structure
- WP_cron won’t trigger my action
- Add htaccess rules with insert_with_markers at beginning of htaccess
- Write to / remove from default .htaccess file from plugin?
- Rename “Portfolio” slug?
- How to create a custom category of wordpress admin
- Adding a div at the bottom of a sidebar
- Cannot get media type from ‘x-mapp-php5’
- How to run JS, PHP and etc. inside WP post?
- Static variable and add_rewrite_rule?
- Nesting if statements to echo only one string based on what tag was filtered?
- Apache Fallback instead of add_rewrite_rule
- Why do WordPress rewriites seem to work differently for posts vs pages?
- Performance impact of rewriting WordPress URLs
- how to change the verification url of pie register plugin of wordpress?
- 3 blogs same installation, without WP MU
- Working with wordpress plugin and theme templates structures
- WordPress: Access a plugin from within a theme
- WordPress plugin/code to hide all things related of a user from the public
- Is sanitize_title_with_dashes formatting function too liberal (in terms of accepted characters)?
- Two Different Links for Same Product – WooCommerce [closed]
- Was told to change the .htacess file form .html to .php so this would work properly
- Changes in permalink structure in WordPress and how to apply to in-site links
- WordPress Persistent connection rule does not work for “posts”
- How to change redirection route to a php page for making it only accessible by logged-in members?
- Append query string to all URL’s
- how to combine wordpress htaccess on my root domain + php on subfolder
- custom rewrite rule help! Custom rewrite rules not applying to custom post type
- custom url rewrite for wordpress
- Use URL Rewrite as well as $_GET parameters in URL?
- How to modify URL (add GET values) after front end form submission?
- admin-ajax.php warning max input vars exceeded on layered pop plugins [closed]
- parts of url disappear when using # inside href=”” [closed]
- Loading index.php contents which located outside blog folder for post single page
- Create custom permalinks to show Custom Post Type’s relationship?
- Add .htm extention to a custom taxonomy
- Large Woocommerce Site (83,000 items), What Can I Do? [closed]
- showing 2 prices wholesale and normal
- Help with .htaccess and Login with Subfolders
- WP & Server Speed [Teacher Question]
- How can I hide that I Use WordPress (with W3 Total Cache)
- Woocommerce Show Single Product on Homepage
- Redirect to another page using contact form 7? [closed]
- WooCommerce Tabs [closed]
- WordPress rewrite rule depend on meta values not ids
- Pages from admin dasboard missing after site migration
- Current WordPress Page Title as Search Parameter into A Tag
- Rewrite rule not working, but only when parameter is text
- Internal Server Errors – Moving working multi-site install to my localhost
- How does one make a URL return dynamic JSON with custom Content Type?
- WP Migrate DB Pro plugin cannot transfer Media files to remote server
- Change custom rewrite rule when permalink is updated/changed
- URL rewrite rule
- URL Rewrite 404
- Deny php execution in /wp-includes – using .htaccess in /wp-includes VS root folder
- Creating a WordPress addon for ContactForm7 submission (.XML file export)
- How come there is no error if I upgrade WordPress core after locking .htaccess permissions to 644?
- How to block access to a folder inside of wp-content for non logged in users?
- How does WordPress rewrite URLS using its PHP scripts
- WordPress Redirect / Add_Rewrite_Rule – Non Index.php Page
- .htaccess file doesn’t work, with hundred tries
- How to change query string with pretty URL in WordPress using .htaccess file
- Upload images from one server to an other in wordpress
- Problem with ajax request and directory structure after site migration
- How can I add “.html” to the end of a single URL on a WordPress website?
- Resource 404 error on multisite subdirectory install
- redirect 301 with special character like WIX site “#!”
- 301 redirect from webpage to wordpress page in the same root
- Rewrite /keyword1+keyword2.html to search page | .htaccess
- How can I turn a url with get method as a clean url with segment as the get method?
- divide custom field values in div every two values
- Redirect homepage /page/1/ to /blog/page/1/
- WordPress Rewrite Issue
- How to print redirected query string variables to the page?
- WordPress plugin creating sidebar on the theme/page
- How To Rewrite WordPress Pages URL Only?
- custom url with custom post
- Multiple URL from Custom post name
- Why isn’t my custom function kicking in from my functions.php file?
- WordPress and magic quotes
- Apache rewrite rules and wordpress problem
- Enabling XSendFile causes 404 for images on WordPress Multisite / Network
- How to get WordPress Adminmenu items?
- How To Customize Position of »add to cart« of WooCommerce on Product Page [closed]
- Difference in Get Variable Location
- Why I can download any file except PHP files from a URL but I can download any from another site?
- Simple tree display of WordPress menu
- 3 domains, 1 wordpress install, redirecting and changing domains on live site
- WordPress adding in site URL to header links
- WordPress Pages into Sections edit.php PHP hack
- WordPress Plugin Receive a Link
- Dynamically append custom post type to end of url
- WordPress: Create A Widget to Accompany Plugin