Skip to content

IIS server config

robiso edited this page Aug 22, 2017 · 10 revisions

Apply the following rule in your web.config

<rule name="rule 1S" stopProcessing="true">
	<match url="^(.+)$"  />
	<action type="Rewrite" url="/index.php?page={R:1}"  appendQueryString="true" />
</rule>
<rule name="rule 2S">
	<match url="database.js"  />
	<action type="Rewrite" url="/-"  />
</rule>

The code above replicates Apache's htaccess functionality with the power of your IIS web.config (server config file). Since IIS doesn't have the "traditional" htaccess file, this is necessary to make WonderCMS work properly.


NOTE: The code above is required to deny access to database.js and make clean URL's which are SEO friendly.


Clone this wiki locally