Redirect *.php to path using web.config file

I want to redirect

to

using web.configfile.

I applied this rule:

but this rule applies on all routes inside blog.

I already applied all tags like in comment section. Trying

or example does not output the desired result.