IIS server config

robiso edited this page Aug 22, 2017 · 2 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
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.