IIS7 Url Rewrite Rules – solved

First create “httpd.conf” file on your root.
Than add the following code to the “httpd.conf” file.

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#Perform rewriting
RewriteRule ^(.*)$ index.php?p=$1 [NC,L]

Now You can write RewriteRule in the .htaccess file