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
- URL rewriting problem
- How do I change my permalink structure to a custom structure on an established blog?
- Custom Register Link on Backend Form
- List of contents of entire blog
- Replace TimThumb in existing WordPress Themes
- Moved wp-content and got problem with themes directory?
- Overstand theme set up issue
- Problem with custom function from jQuery slider tutorial
- Remove Sidebars from page
- accessing monthly archive from dashboard
- Customizing the gallery of the post correctly
- Exclude current post but keep the same posts-per_page amount
- WordPress 3.1.2 Bug: add_theme_support() and video post format registering twice
- Display a specified content on a Page and all its child pages
- Adding Theme File for Non-WordPress Content
- Create new network instance, import old single installs AND keep the urls?
- title tag function
- How to do multi site setup
- WordPress 3.1 update has reversed my blog posts
- WordPress Command Question
- getting a 404 page for all pages except home. possibly permalinks
- Different profile page by role
- kitchen sink not working
- WordPress menu: How to make www.link.com/#name never contain current_page_item class?
- Troubles about insering a POST with a SQL query, post_status
- Any Good WordPress Client Like Live Writer To Create Static Pages
- WordPress homepage hangs in IE browsers
- WordPress pagination with custom post type?
- How to retain visual breadcrumbs w/ tricky URL structure? Custom post template?
- 2.9 to 3.0: Pros and cons of upgrading?
- How do I create a Custom Post Box that Connects Different Posts Together
- How to replace blog page url with subdomain at all places, even in xml sitemap?
- Pull Latest Forum Posts within WordPress
- How to setup a membership system in WordPress?
- Where’s did this div element come from?
- query_posts meta_key with current date
- How to activate flash cards
- Add array of post id’s to a category?
- Transferring theme and imported post attachments
- Adding pub_Date to an RSS feed hosted on WordPress
- Get custom field value from not-current page
- Mimicking admin panel menu from wordpress 3.0.1
- RSS feed showing deleted post
- Personalized Gallery what are my options?
- saving the widgets position after drag and drop
- Custom page template, not acting as page
- Google calendar in wordpress showing events
- Trying to use .htaccess to redirect /profile to /login-2?action=profile
- how or where wordress collect unlogged user session
- How to create social Share Buttons Without Plugin
- Add rewrite rule to make Woocommerce product category page seo friendly
- Customize Widget Navigation