rewrite ALL REQUESTS except files? [Answered]RSS

1 reply

Last post Aug 13, 2009 12:29 PM by DanielVL

  • rewrite ALL REQUESTS except files?

    Aug 12, 2009 10:21 PM|Jibbs22|LINK

     hi all

     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

     so basically.. or

    gets redirected, while doesn't

    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! 

  • Re: rewrite ALL REQUESTS except files?

    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:

    apache mod_rewrite

    Daniel Vasquez Lopez
    IIS Team