Using ISAPI Rewrite I'm looking for a way to detect if a given URL contains only one subfolder and then rewriting the URL.
www.mysite.com/Cloud => true
www.mysite.com/Cloud/ => false
www.mysite.com/Cloud/One => false
www.mysite.com/Cloud.xml => false
the result should be the URL added with .html only for the true condition
www.mysite.com/Cloud.html
Try using the following:
You did not specify if it's a 301-redirect or a rewrite. So in case it's 301-redirect, simply add R=301 in flags.