I have a Magento installation and want to rewrite the url and remove index.php and the trailing '/' from it
e.g. rewrite http://www.domain.com/index.php/ to http://www.domain.com http://www.domain.com/index.php/customer/account/login/ to http://www.domain.com/customer/account/login
etc etc. So not for these 2 urls but for all urls.
I currently have this in my web.config:
<?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)([^?#]*)(\\?([^#]*))?(#(.*))?" />
<conditions>
<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" />
</conditions>
<action type="Rewrite" url="index.php/{R:0}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
With the above web.config, the urls do not seem to be rewritten at all, but are just kept as-is.