wordpress : Format endpoint rewrite rule