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″?>
<rule name=”Magento SEO: remove index.php from URL”>
<match url=”^(?!index.php)([^?#]*)(\?([^#]*))?(#(.*))?” />
<action type=”Rewrite” url=”index.php/{R:0}” />
<add path=”*”>
<add provider=”WWW Server” areas=”Rewrite” verbosity=”Verbose” />
<failureDefinitions statusCodes=”404″ />


IIS 7 7.5 allow POST requests to html files

IIS 7 7.5 allow POST requests to html files

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