Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've installed Magento on IIS in folder: E:\mydomain\wwwroot (I already have it all running correctly).

I have no deeper folder magento, I placed all files directly in the wwwroot folder, so:


UPDATE: since I'm on IIS my .htaccess is ignored completely and my web.config rules are used instead. Here's my web.config in folder e:\mydomain\wwwroot:

<?xml version="1.0" encoding="UTF-8"?> 

        <rule name="Magento SEO: remove index.php from URL">
          <match url="^(?!index.php)([^?#]*)(\\?([^#]*))?(#(.*))?" />
              <add input="{URL}" pattern="^/(media|skin|js)/" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
              <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          <action type="Rewrite" url="index.php/{R:0}" />

Next, I wanted to install WordPress. I unzipped all files in folder e:\mydomain\wwwroot\wordpress

Browsed to www.mydomain.com/wordpress/wp-admin/install.php, where I configured everything for my database. Everything was installed correctly.

I then navigate to http://www.mydomain.com/wordpress/wp-login.php where I type my credentials. I seem to be logged in and am redirected to http://www.mydomain.com/wordpress/wp-admin/ But there I receive an empty page. I enabled detailed error message in IIS following this article: http://www.iis.net/learn/troubleshoot/diagnosing-http-errors/how-to-use-http-detailed-errors-in-iis I also checkec with Fiddler and see that I receive a 500 error:

GET /wordpress/wp-admin/ HTTP/1.1 Host: www.mydomain.com Connection: keep-alive Cache-Control: max-age=0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/29.0.1547.76 Safari/537.36 Referer: http://www.mydomain.com/wordpress/wp-login.php Accept-Encoding: gzip,deflate,sdch Accept-Language: en-US,en;q=0.8,nl;q=0.6 Cookie: wordpress_fabec4083cf12d8de89c98e8aef4b7e3=floran%7C1381236774%7C2d8edb4fc6618f290fadb49b035cad31; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_fabec4083cf12d8de89c98e8aef4b7e3=floran%7C1381236774%7Cbf822163926b8b8df16d0f1fefb6e02e

HTTP/1.1 500 Internal Server Error Content-Type: text/html Server: Microsoft-IIS/7.5 X-Powered-By: PHP/5.4.14 X-Powered-By: ASP.NET Date: Sun, 06 Oct 2013 12:56:03 GMT Content-Length: 0

My WordPress web.config in folder e:\mydomain\wwwroot\wordpress contains:

<?xml version="1.0" encoding="UTF-8"?>
            <rule name="wordpress" patternSyntax="Wildcard">
                <match url="*"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
                        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
                <action type="Rewrite" url="index.php"/>

I also want my WordPress articles to be available on www.mydomain.com/blog instead of www.mydomain.com/wordpress

Ofcourse my admin links for Magento and Wordpress should also work.

How can I configure my web.config files to achieve the above?

share|improve this question
What does the .htaccess file look like within the WordPress folder? – Anagio Oct 4 '13 at 7:51
@Anagio: Hmm...I have no .htaccess file at all in folder \wwwroot\wordpress what should it contain? – Flo Oct 4 '13 at 10:10
I just realized you're on IIS not Apache. Check the IIS info on this page codex.wordpress.org/Using_Permalinks – Anagio Oct 4 '13 at 10:52
@Anagio: I checked out your linkk. It contains example rewrite rules when rewriting Wordpress links. I don't know how to merge those rules with my current web.config rewrite rules (see my updated post). Thanks! – Flo Oct 5 '13 at 10:31
i'm not very familiar with IIS, if it were Apache2 I could be more help. All I can suggest is try Googling WordPress rewrite permalinks and IIS – Anagio Oct 5 '13 at 12:31

It might be worth turning on detailed error messages in IIS so you can find out what's causing that 500 error. By default IIS will not show detailed errors unless you're requesting the page from localhost.

share|improve this answer
see my updated post. I enabled detailed errors, but still receive an empty page...any suggestions? – Flo Oct 6 '13 at 12:59
Yep, check the event logs. Most of the time they are pretty cryptic. but you might get lucky and find another clue. – Dale A Oct 6 '13 at 21:25
I enabled logging in IIS and a new log is created when I request /wordpress/index.php, however, the log file is empty. Now what? – Flo Oct 7 '13 at 7:34
Not the IIS log files... the Windows Event Log. Start > search for Event Viewer, open it, go to Windows Logs > Application. That's all I can offer. – Dale A Oct 7 '13 at 17:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.