Tags

, , , , , , ,

Remove index.php file in Codeigniter or wordpress or other freamwork  on Windows IIS7 Server

Sometime .htaccess file does not work on windows server, so we have use web.config file insted of .htaccess in root path

 

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”codeigniter” patternSyntax=”Wildcard”>
<match url=”*”/>
<conditions>
<add input=”{REQUEST_FILENAME}” matchType=”IsFile” negate=”true”/>
<add input=”{REQUEST_FILENAME}” matchType=”IsDirectory” negate=”true”/>
</conditions>
<action type=”Rewrite” url=”index.php”/>
</rule></rules>
</rewrite>
</system.webServer>
</configuration>

Advertisements