Running ELGG in Windows IIS 7

In our Development Team meeting we decided we will develop our elgg based website in two tracks: one in 1.8beta and one based on the current release 1.79. Today I started the downgrade to elgg 1.79.

Because I also develop software for IIS, I want to create a development environment on my laptop with IIS/PHP/MySQL instead of the usual Apache/PHP/MySQL. Normally that is not a big problem, main thing -most of the time- is importing the rewrite rules from the .htaccess file. In elgg it is not different, but the documentation is a bit incomplete at this point.

At this webpage elgg shows you the rewrite rules in a Microsoft friendly format that you should be pasted into your web.config. However that will not work. The reason: the rules contain & instead of &. As you may know, in XML it is required to use &.


<span style="font-family: 'Courier New';"><action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}<span style="font-size: large;"><strong>&</strong></span>{QUERY_STRING}" appendQueryString="false" /></span>


<span style="font-family: 'Courier New';"><action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}<span style="font-size: large;"><strong>&amp;</strong></span>{QUERY_STRING}" appendQueryString="false" /></span>

In the attachment you’ll find the downloadable web.config file with the correct rewrite rules.

webconfig

Leave a Reply

Your email address will not be published. Required fields are marked *