I have enabled the category box for pages with this:
// Add to the admin_init hook of your theme functions.php file
add_action( 'admin_init', 'page_categories' );
function page_categories() {
// Add tag metabox to page
register_taxonomy_for_object_type( 'post_tag', 'page' );
// Add category metabox to page
register_taxonomy_for_object_type( 'category', 'page' );
}
And now I would like to have an URl structure of :
domain.com/%category%/%pagename%/
I suppose it has to be a rewrite rule but i am not very good with regular expressions.