I have always used apache, so I am completely new to IIS. How do I do this in IIS?
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
I have IIS Manager open, and I look at "URL Rewrite" and just click on "Add Rule". I guess this is where I want to be, but I don’t know where to go from here.
For those of you who know IIS but not apache mod_rewrite, it just checks to see if the request is NOT a directory or file, and if so, it takes the URL of the request and passes it to index.php as a GET parameter that it can be processed in code using a router.
source
share