Reputation: 2546
Currently we have an API serving in Apache with Mod Rewrite module with the following rules:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,NS]
As you can see it obtains the URI segments as they are and calls only index.php which is in charge of exploding all segments '/'.
We are just starting with this new URL Rewrite Module that we downloaded in the IIS official web page. We have also seen that there are rules within the IIS like Frienly SEO urls and other stuff.
so the question is, How Can I achieve the rules above to work with this IIS module?
Upvotes: 0
Views: 535
Reputation: 483
Just import it on the IIS server. The IIS server will automatically convert the rewrite rule.
To do this just select your website or the Default Web Site then click on Features View > URL Rewrite > Import Rules (on Action Pane).
Here are some reference to start with:
Upvotes: 1