Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question

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" />
share|improve this answer
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 '11 at 15:49
where does that goes in? thank you – user5133 Feb 3 '11 at 15:08
Where shall I put this? I am using Joomla 1.6 Thanks – user5374 Feb 13 '11 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 '11 at 21:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.