Have answer for myself <action type="Rewrite" url="temp/{PATH_INFO}" appendQueryString="true" /> But weired thing is if I go to http://foo.com/anypath , sometimes, it is correct, but sometimes it redirects to http://foo.com/temp/anypath , especially after I clear cache...