Magento remove index.php from URL in IIS

go to Magento admin panel –> system –>configuration –>web –>Search Engines Optimization –> Use Web Server Rewrites –> Yes

create web.config file under magento root folder

add the following content to the file (tracing is optional)

<?xml version=”1.0″ encoding=”UTF-8″?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name=”Magento SEO: remove index.php from URL”>
<match url=”^(?!index.php)([^?#]*)(\?([^#]*))?(#(.*))?” />
<action type=”Rewrite” url=”index.php/{R:0}” />
</rule>
</rules>
</rewrite>
<tracing>
<traceFailedRequests>
<add path=”*”>
<traceAreas>
<add provider=”WWW Server” areas=”Rewrite” verbosity=”Verbose” />
</traceAreas>
<failureDefinitions statusCodes=”404″ />
</add>
</traceFailedRequests>
</tracing>
</system.webServer>
</configuration>

IIS 7 7.5 allow POST requests to html files

IIS 7 7.5 allow POST requests to html files

<?xml version="1.0"?>
<configuration>
	<system.webServer>
		<handlers>
			<add name="htm" path="*.htm" verb="*" modules="IsapiModule"	scriptProcessor="%windir%\system32\inetsrv\asp.dll" resourceType="Either" />
		</handlers>
	</system.webServer>
</configuration>
By Zhongchen Zhou Posted in IIS Tagged