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
- Custom Post Type Permalink / Rewrite not working immediately
- Custom Taxonomy Endpoint Pagination using paginate_links()
- Taxonomy, Terms, and Template Files
- Custom taxonomy listing page when no term set (all terms)
- Permalink rewrite 404 conflict- WordPress Taxonomies/ CPT
- How to display a listing template of a certain taxonomy?
- How to use wp_terms_checklist() on front end
- How to check if last uri segment is a custom post type or taxonomy term?
- Which template name to use for taxonomies but not their terms?
- custom taxonomies on permalink
- WP Rewrite Rules – Custom post type & taxonomy
- 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
- Make Custom Taxonomy Category Use Parent Template
- Custom taxonomy template not working
- 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
- Keep taxonomy base name in post permalinks
- WordPress not respecting template hierarchy (fetches index.php instead of single.php or page.php)
- Permalink Structure CPT With Custom Taxonomy Fails
- Permalinks for custom taxonomy stopped to work
- 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
- 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
- Custom Taxonomy and Rewrite URL
- How do I create a permalink structure with 2 taxonomies
- 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
- Taxonomy Rewrite Rules Redirecting Instead of Masking
- Template files for Custom Post Type and Taxonomy
- Why is flush_rewrite_rules mandatory after registering custom taxonomies?
- Returning One custom taxonomy term name
- How can I make front page to display custom taxonomy page?
- How to add hierarchical taxonomy with parent child relation to URL?
- WordPress custom permalink and archive link for custom post type
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- How to add custom content to custom taxonomy
- how to access the $query variable inside taxonomy-xxx.php template file?
- How to define %category% for custom taxonomies?
- Taxonomy archive uses incorrect template when query strings are used
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- Change the full permalink (URL) of a single post by connecting it to a specific page
- How to use custom slug and custom templates for custom taxonomy?
- Rewrite Search URL Permalink For CPT Custom Taxonomies
- How can I rewrite the URL of my custom taxonomy to include the year?
- How to change Custom Permalink for Taxonomy? (remove the slashes from term-slug)
- Rewrite/Change custom taxonomy slug
- Remove custom taxonomy slug from URL
- Rewriting url for multiple Taxonomies and Custom Post Type
- Custom rewrite url structure for several custom taxonomy (NOT pos_type)
- Restructuring permalink with more than one taxonomies
- Hierarchical taxonomies in permalink cause 404 for sub term archive
- How to get a terms and posts associated with another term?
- Custom taxonomy archive template not recognised
- Custom taxonomy return 404
- Permalinks incorrectly inserting multiple categories
- add_rewrite_rule using custom taxonomy and year
- If term and page have the same slug, how can I view the term archive?
- Permalink Rewrite to include Custom Taxonomy Term
- Multiple taxonomies, what should the permalink look like?
- Taxonomy to WordPress Permalinks of custom post type
- How to update WordPress custom SQL Select query for custom taxonomies so that syntax is correct?
- Permalinks not working on MU network with domain mapping
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- post_type_link not working for posts without terms
- Two taxonomies with the same slug