First, your additional line comes too late. The rule before catches everything you want to match.
Second, it doesn’t what you want. Your …
RewriteRule /([0-9]+/?)$ /about/latest-news/$1 [NC,L]
… matches requests like example.com//0000000000000000000/
or example.com/about/latest-news/2010/
(infinite loop!).
The first argument for RewriteRule
omits the starting /
.
To match year archives you need rather:
RewriteRule ^(\d\d\d\d)/?$ /about/latest-news/$1 [NC,L]
I’m not sure if you really need mod_rewrite for that. Try the following line above the rewrite block:
RedirectMatch Permanent ^/(\d\d\d\d)/?$ /about/latest-news/$1
You have to tell WordPress about your custom archive permalinks. You should find enough good examples under the tag.
Related Posts:
- redirect post id to post full url
- How do I redirect a post url to a custom url?
- htaccess – Redirect to subfolder without changing browser URL
- Generic htaccess redirect www to non-www
- Masking wp-content/themes/name/images to just images directory using htaccess
- How to map permalinks with accented letters to sanitized slugs?
- How to build custom WP admin with custom URLs
- Removing rules from .htaccess
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Why does WordPress 3.0.4 keep deleting the contents of the .htaccess file?
- Remove Author Slug & Replace With Username
- Rewrite rule to load images from production does nothing
- Remove base slug in permalinks of hierarchical custom post type
- WordPress rewrite rules don’t need ^?
- Adding rewrite rules directly to .htaccess file
- Setting custom search engine indexing for a “dynamic WordPress page” with htaccess
- a one-off rewrite rule
- WordPress slugs and 404 handling takes preference over folders in site root?
- Change htaccess to redirect to index.php in subfolder
- URLs and navigation in custom themes
- How to remove wordpress directory slash
- Rewriting “pretty” blog category URL with htaccess / add_rewrite_rule() causes 404 page
- Map secondary domain to other’s virtual subfolder
- WordPress 3.0.1 on IIS 6 Web Server PermaLink Issues
- mod-rewrite exception? keep #hash in matching urls?
- website with pretty permalinks except pagination
- add_feed rewrite overwriting standard permalinks
- force www rewrite if wordpress put in a folder
- Many Rewrite Parameters/Rules
- How do I make WordPress revise an .htaccess file a certain way?
- How can I resolve a .htaccess internal server error setting up a WordPress multisite?
- How do I run a web app in my WordPress theme without the “wp-content/theme/…/webapp” in URL?
- website is not loading home page (moving from one server to another server)
- I want to change url structure of my created archieve pages
- Pretty URL via Rewrite
- URL Rewrite 404
- How to add rewrite rule for product compare page?
- Problems with running a 2nd installation of WordPress on my domain?
- Url rewriting on custom post with CPT UI plugin
- Page Permalinks: Custom URLs
- ModRewrite not working properly
- Allow arbitrary text after page URL
- wp_rewrite not working on third level url
- Can’t get pretty permalinks to work without index.php
- How to redirect a virtual page (e.g. /blog) to the home page?
- Show post content in two different places without redirect
- Add rewrite endpoint and .htaccess
- Create a page for each database table entries
- Should I delete the default themes?
- Moving WP install from local to live, what about wp_posts GUID?
- What are the ways to use WordPress as a user generated content site
- Win7 Dev Environment
- Adding Custom Link anchors in the top menu that points to specific sections of the site home page
- TinyMCE default link target to “_blank”
- setting a specific home page for logged in users
- Page with several user editable text content
- Programmatically add a custom page/path/url/route to WordPress
- How do I remove the eye icon that shows visibility on login screen and reset password screen
- Is it possible to have one page with multiple items, or 2 blogs on a site?
- WordPress .htaccess blocks mine?
- Get Value from Column in Plugin Table [closed]
- Display User ID instead of Name or Username
- joomla to wordpress migration and 404 errors issues [closed]
- Bind JS event to WordPress control customizer
- Make custom page look exactly as homepage
- OrderBy multiple custom meta fields
- Track usernames with piwik [closed]
- Woocommerce – Print Product’s Custom Field In Email
- ow to change cutsom page url of wordpress site using htaccess
- Applying WP-cli Search & Replace to Static SQL Dump File
- How do I list custom taxonomy terms with the links?
- How to unpixelate logo?
- Remove header title form page through CSS [closed]
- Create a Page template selector page
- How Can I limit the visible part of the short-description on the Category page?
- custom css and javascript not working on page defined as template?
- Custom url structure – pages under a custom post type
- Rewrite rules for custom post type
- Rewrite rule that wp-login.php?action=register is left alone
- Custom Database Table and foreach
- Hook before user is created and make some custom validation
- How to get Previous Visited Page Information
- How to add Custom Css within the Editor?
- Custom admin menu items
- How can Use custom input field in functions.php page?
- ACF unable to use user field
- Change HTML markup on blog post
- How do I target this page specifically?
- Local Shortcode Using WordPress Custom Fields
- How to send email with wp_mail() with from email taken from contact form instead of the host?
- Change post template the proper way
- Make User Role a Filter
- I need to display post related info
- Is there os native application for wordpress?
- Apache rewrite rules and wordpress problem
- Custom single page based on which custom page template is selected
- menu customization
- Modifying a local template
- How to apply styles to the custom page template
- Changing displayed photo when shared via facebook