Joomla 1.6 was released today and I'm wondering if anyone knows how to get rid of the /index.php/ part?

How link looks now:


How link would look after URL rewrite:


The old code (j1.5) at this link doesn't work: http://docs.joomla.org/SEO_and_IIS_ISAPI

1 Answer 1


I'm using this:

        <rule name="Imported Rule 1" stopProcessing="true">
      <match url="^(.*)$" ignoreCase="false" />
      <conditions logicalGrouping="MatchAny">
        <add input="{QUERY_STRING}" pattern="mosConfig_[a-zA-Z_]{1,21}(=|\%3D)" ignoreCase="false" />
        <add input="{QUERY_STRING}" pattern="base64_encode.*\(.*\)" ignoreCase="false" />
        <add input="{QUERY_STRING}" pattern="(\&lt;|%3C).*script.*(\>|%3E)" />
        <add input="{QUERY_STRING}" pattern="GLOBALS(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
        <add input="{QUERY_STRING}" pattern="_REQUEST(=|\[|\%[0-9A-Z]{0,2})" ignoreCase="false" />
      <action type="CustomResponse" url="index.php" statusCode="403" statusReason="Forbidden" statusDescription="Forbidden" />
    <rule name="Imported Rule 2">
      <match url="(.*)" ignoreCase="false" />
      <conditions logicalGrouping="MatchAll">
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" pattern="" ignoreCase="false" />
        <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" pattern="" ignoreCase="false" />
        <add input="{URL}" negate="true" pattern="^/index.php" ignoreCase="false" />
        <add input="{URL}" pattern="(/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$" />
      <action type="Rewrite" url="index.php" />
  • Thanks for the code, but it didn't help. I think it has to with the fact that I'm not running IIS with FastCGI. Hopefully the code will be useful for others.
    – jman
    Feb 1, 2011 at 15:49
  • Where shall I put this? I am using Joomla 1.6 Thanks
    – user5374
    Feb 13, 2011 at 20:35
  • You add the code in the URL Rewrite module in IIS7. If you don't have it installed you can add it to your IIS: learn.iis.net/page.aspx/460/using-the-url-rewrite-module
    – jman
    Feb 13, 2011 at 21:21

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.