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
- Running Gutenberg React in Development Mode
- Is there a blank theme framework compatible with WP 3.0? [closed]
- Check for and enforce unique value in user-entered custom meta field in WP Admin
- Enable / Add Custom Keyboard Shortcuts To Work With WordPress’ HTML Editor
- Managing Images for a WordPress Blog: Picasa or Flickr?
- unexpected problem in url rewrite
- Need to make a php file inside theme accessible via url
- What is causing this error? “Warning: Invalid argument”
- WordPress native “playlist” shortcode. Next and Prev there are but with no icons. How to fix?
- Add query string to url and display it as normal url part /folder/
- Show post page only if the user has bought a specific product
- WordPress On subfolder
- Function to remove archive sidebar for custom taxonomy?
- Google font doesn’t show in theme option
- Add a InfoBox in the media upload window
- How to get custom page template being edited in gutenberg editor
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- Steps for custom data retrieval
- 404 error Additionally 403 Forbidden error on a URL
- Is there a way to use LaTeX formatting for WordPress?
- I’d like to move the Widgets Panel to the bottom of the list in Customizer
- Is there a way to set the value and text for Select/Radio/Checkbox using More Fields?
- Custom Log In Screen – Disable password recovery [duplicate]
- the_post_thumbnail() returns nothing even though has_post_thumbnail() returns true
- orderby in query_posts
- Instant install of wordpress
- Problem with theme activatation
- How to customize feed?
- Two description meta tags All in One SEO WordPress [closed]
- How to display page ids as page slug names?
- WordPress Page Not Found if Permalink Settings is Postname
- Fatal error Call to a member function insert() on a non-object [closed]
- Create Miltiple Category Base
- customer specific email attachment
- Get /users/me details from WordPress backend
- mailchimp integration on a custom footer
- Can’t Customize WordPress Page
- How to show the hero of website when sending website link?
- How should I design subcategory login site?
- How do I change the button text color on my header?
- Multiple Owl Carousels on the same page with navigation problem
- Can I check who updated the static front page on WordPress and the time it was done
- Removing comma from ‘entry-date’ in Twenty-Sixteen theme
- Custom search results
- WordPress integration with Backbone or AngularJS
- Special characters showing in fallback font
- add unique code required to register
- How to create functions that affect only a specific user
- WordPress on a subfolder but accessible from root
- I need a plugin in wordpress like google tasks [closed]
- Problems with WP 6.1.1 and the get_user_meta() function
- Modifying posts based on category in TwentyTwentyTwo theme