In permalinks(dashboard) section index.php added. e.g.

Current Post Name: http://zakatchicago.com/index.php/sample-post/
Expected Post Name: http://zakatchicago.com/sample-post/

How can i remove index.php?

Note: I am using windows server

  • You could find an answer to this problem? I'm looking solving the same problem but I can't find an solution yet. – Jabel Márquez Nov 3 '16 at 0:15

According to the documentation here: http://www.iis.net/learn/extensions/url-rewrite-module/enabling-pretty-permalinks-in-wordpress

I assume you have already selected Post Name in your permalink structure:

Then include this code in web.config

    <rule name="Main Rule" stopProcessing="true">
        <match url=".*" />
        <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
        <action type="Rewrite" url="index.php" />
  • Already I putted in root web.config file containing above code .But not any change. – Kaizur Ahmed May 20 '15 at 11:41
  • I want to remove index.php from permalinks.Also from site url. – Kaizur Ahmed May 20 '15 at 11:44
  • stackoverflow.com/questions/12106064/… - you also need to set the permalink structure found in the accepted answer at this link. – Derreck Dean Feb 28 '17 at 17:32
  • 1
    @DerreckDean Thanks, I think I have already mentioned it before the code. – Manoj Kumar Feb 28 '17 at 18:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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