I have EE installed on a clients windows server but I'm having problems removing index.php from the URL

This is the first time I've worked on a windows server (all precious jobs have been in apache and used .htaccess)

The hosting company is being incredibly difficult - can anyone please point me in the right direction.



  • Did my answer below work for you? May 6, 2013 at 1:16
  • This has been a common question before. Let us know which answer worked for, if any. May 25, 2013 at 2:27

2 Answers 2


Which hosting provider do you use? What version of IIS/Windows do they use?

You can try to add a web.config file to your root

    <customErrors mode="Off" />
    <compilation debug="true" />
            <rule name="Imported Rule 1" stopProcessing="true">
                <match url="^(.*)$" ignoreCase="false" />
                <conditions logicalGrouping="MatchAll">
                    <add input="{R:1}" pattern="\.(gif|jpe?g|png)$" 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:1}" />
        <requestFiltering allowDoubleEscaping="true" />

  • Hosting is with Redstation May 6, 2013 at 8:54

ISAPI Rewrite might be helpful, I've seen it used on a few windows hosts.

The hosting company is being incredibly difficult

Maybe recommend your client moves to a new host?

  • Have suggested that but they are reluctant to move. Plus I'm working through another agency so it starts to get difficult as I don't have direct access to the client. Will try ISAPI May 6, 2013 at 8:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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