It seems that the
add_rewrite_rule works only if the
permalink is set to non empty value in wp-admin/setting page. Isn't it?
Then once I set that value to
/item/%post_id%, I got the rewrite rules like this through debugging:http://imgur.com/a/08nAU.
There are too many rules not necessary in my case, is it possible to remove that?