Programming, microcontrollers and photography

Running elgg in Windows IIS 7

06 Jun 2011
Posted by John

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 &.

<action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}&{QUERY_STRING}" appendQueryString="false" />

<action type="Rewrite" url="engine/handlers/action_handler.php?action={R:1}&amp;{QUERY_STRING}" appendQueryString="false" />

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

webconfig.zip630 bytes

Hi, I have tried using the


I have tried using the code you suggested and i am still failing the rewrite test.

can you advise if there is anything else i can do?

thanks in advance

Have you tried my web.config

Have you tried my web.config in the attachment of the post? You can download it here.
If that doesn't work, you post your web.config or send it to me using the contact form I'll have a look.

My Elgg installation is still failing the rewrite test.

I followed your instructions and used the web.config file you provided, but I am still failing the rewrite test. Any ideas how I can fix this?

Powered by Drupal, an open source content management system