diff --git a/README.md b/README.md index ef10ef5..125180b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,7 @@ If you want a great new feature or experience any issues what-so-ever, please fe - [Installation](#installation) - [Setting up Apache](#setting-up-apache) - [Setting up Nginx](#setting-up-nginx) + - [Setting up IIS](#setting-up-iis) - [Configuration](#configuration) - [Helper functions](#helper-functions) @@ -172,6 +173,45 @@ RewriteCond %{SCRIPT_FILENAME} !-l RewriteRule ^(.*)$ index.php/$1 ``` +### Setting up IIS + +On IIS you have to add some lines your `web.config` file in the `public` folder or create a new one. If rewriting is not working for you, please check that your IIS version have included the `url rewrite` module or download and install them from Microsoft web site. + +#### web.config example + +Below is an example of an working `web.config` file used by simple-php-router. + +Simply create a new `web.config` file in your projects `public` directory and paste the contents below in your newly created file. This will redirect all requests to your `index.php` file (see Configuration section below). If the xxx file already exists, add the `` section inside the `` branch. + +``` + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + ### Configuration Create a new file, name it `routes.php` and place it in your library folder. This will be the file where you define all the routes for your project.