IIS 7 and Above
URL Rewrite Module
rewrite ALL REQUESTS except files?
Last post Aug 13, 2009 12:29 PM by DanielVL
Aug 12, 2009 10:21 PM|Jibbs22|LINK
I just started using this rewrite application before I was using apache (still am just using this for a client that is windows-only)
Anyways, I need to rewrite all requests that aren't existing files to my index.php file which handles the request from there
http://yoursite.com/anything_here or http://yoursite.com/this/is/a/page
gets redirected, while
know I don't know what files could be in there, heck it could be an entirely different user folder, basically i need a "IF IS NOT A FILE REWRITE" condition
any help would be awesome!
Aug 13, 2009 12:29 PM|DanielVL|LINK
You can check if a requested URL is, or is not, a file by using <conditions><add type="IsFile" negate="true"/></conditions>, but if you are more familiar with Apache syntax, you can use the Import Rules features and type the Apache rules and then we'll do
our best for translating the Apache syntax to IIS URL Rewrite Module. Here is how: