At first, you shouldn’t use .htaccess directly when working with WordPress. WordPress has powerful rewrite API allowing you to do the stuff from plugins or theme’s functions.php
If you need the id=floos on more than one page, consider using rewrite endpoints:
function makeplugins_add_json_endpoint() {
add_rewrite_endpoint( 'floos', EP_PAGES );
}
add_action( 'init', 'makeplugins_add_json_endpoint' );
To determinate, whether floos is set up, you check like this:
global $wp_query
if ( is_page() && isset( $wp_query->query_vars['json'] ) ) { ... }
If you need that only for a specific page and the “id” value can change, you’ll have to use standard wp_rewrite stuff:
add_filter( 'query_vars', 'binda_query_vars' );
function binda_query_vars( $vars ) {
$vars[] = 'id';
return $vars;
}
add_action( 'generate_rewrite_rules', 'binda_rewrite_rules' );
function binda_rewrite_rules( $wp_rewrite )
{
$page = get_post( array( 'post_type' => 'page', 'name' => 'steder-detail' );
$wp_rewrite->rules = array(
'steder-detail/(.*)/?$' => $wp_rewrite->index . 'page_id=' . $page->ID . '&id=' . $wp_rewrite->preg_index( 1 ),
) + $wp_rewrite->rules;
}
The value of ID would be accessible as follows:
get_query_var( 'ID' );
PS: Both codes should go either to functions.php, or better to site-specific plugin.