I found this code;
function ftc_flush_rewrites() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
function ftc_add_rewrites() {
global $wp_rewrite;
$ftc_new_non_wp_rules = array(
'find/(this)' => '/addit.php?here=$1',
);
$wp_rewrite->non_wp_rules = $ftc_new_non_wp_rules + $wp_rewrite->non_wp_rules;
}
add_action('generate_rewrite_rules', 'ftc_add_rewrites');
add_action('admin_init', 'ftc_flush_rewrites');
in this thread http://wordpress.org/support/topic/writing-wp_rewrite-gtnon_wp_rules-to-htaccess …not sure if that addresses the problem but good luck!
Related Posts:
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- How to enable hierarchical permalinks for hierarchical taxonomies
- Custom taxonomies, with custom rewrites/slug, AND loading a taxonomy archive template from a plugin
- How can I set up a category “overview” page?
- Add parent/child taxonomy to custom post type url
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- How do I modify taxonomy term slugs dynamically?
- Permalink help with default Posts and custom Taxonomy
- how to change permalinks format for pagination?
- Rewrite Rules returning wrong data
- How to change url for taxonomy pages?
- How do I get the correct URL?
- How to replace custom post type with custom taxonmy in permalinks
- Adding Category to Child Posts Permalink
- Custom Post Type Permalink / Rewrite not working immediately
- WordPress Rewrite Rules for Custom Post Type and Taxonomy
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Custom Taxonomy Archive Page
- Taxonomy, Terms, and Template Files
- Custom taxonomy listing page when no term set (all terms)
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- Taxonomy Templates… by hierarchical level?
- Templates for Custom Post Types and Custom Taxonomies
- How to display a listing template of a certain taxonomy?
- How to modify URL structures in custom post types and taxonomies or terms
- Help with a TV series Rewrite structure
- How to use wp_terms_checklist() on front end
- Permalink rewrite with custom post type and custom taxonomy
- Remove Custom Taxonomy Base
- Custom Taxonomy Template not respecting ‘include_children’ => ‘false’
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- Dynamic page slug for Custom Taxonomies?
- How to check if last uri segment is a custom post type or taxonomy term?
- Custom Post Type with Nested Taxonomy and Template Files
- Which template name to use for taxonomies but not their terms?
- How to fix a double slash in custom permalinks with hierarchical taxonomy’s?
- Getting archive pages in WP’s AJAX internal link finder?
- custom taxonomies on permalink
- WP Rewrite Rules – Custom post type & taxonomy
- On Taxonomy Template page, want to add Post_Type
- Pros and cons of using [taxonomy name] in place of [category name]?
- Remove base slug in CPT & CT, use CT in permalink
- term_link() filter or rewrite and howto?
- WP redirects pretty permalink to query string
- Permalinks for quote authors
- Change in custom taxonomy permalink causes 404 error for another custom taxonomy
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- Taxonomy based permalinks
- custom taxonomy archive permalink shows 404 error
- Using a different template per Custom Taxonomies for single term archive pages
- Custom taxonomy term in WooCommerce product permalink
- Change URL structure of subcategory archive pages
- Custom Permalink Tag breaks Pagination
- Woocommerce custom taxonomies page
- Custom Permalink for Taxonimie and Custom Post Type
- Generic taxonomy-term template page
- How do I get WordPress URL rewrites into Sitemap?
- Keep taxonomy base name in post permalinks
- Add hierarchical taxonomy to permalink for custom post type
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- 404 for a custom taxonomy?
- Change permalink of post if it belongs to custom taxonomy
- Create multiple rewrite endpoints for custom taxonomy archive
- Permalink Structure CPT With Custom Taxonomy Fails
- Parent & Child Taxonomy slugs in custom post permalink
- Permalinks for custom taxonomy stopped to work
- Date archive permalinks for custom taxonomy
- Taxonomy with_front causes all
- Why is my taxonomy template not shown?
- 404 error- issues with pages after adding custom rules for posts
- How to overwrite registered taxonomy url from vendor plugin in child theme
- Meta description – template code to get category description
- Create and set templates for custom taxonomies
- How to add a Rewrite Rule / Category Structure
- Pagination on custom taxonomy
- How to have two different versions of a tag/category/taxonomy archive page?
- How do I create a custom archive page depending on the custom taxonomy type?
- Customize Custom Post Type URL
- Taxonomy Pagination Rewrite
- Custom Permalinks with CPT and Hierarchical Taxonomies
- Custom taxonomy returns 404
- Different single page templates for taxonomies
- Replace taxonomy permalinks
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- Base permalink for custom taxonomy
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Flush Rewrite Rules when new site is created on network
- Rewrites with hierarchical taxonomies in permalink
- Rewrite rules for varying nested terms of custom taxonomy
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- Override Taxonomy Template
- Taxonomy Parent Name
- Template files for Custom Post Type and Taxonomy
- Query custom taxonomy by term id?
- Avoid taxonomy-%term%.php if more than one taxonomy
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- Returning One custom taxonomy term name