How to Remove /index.php from WordPress URLs in Windows Server or Plesk Server?

If you are using Windows/Plesk hosting, you might have noticed that your WordPress website blog post links showing below format:

http://www.yourdomain.com/index.php/my-new-post

To remove the /index.php from the link, it’s required some tweaks from your WordPress admin panel and as well as in the File manager. So, follow me.

At first login to your WordPress admin panel, then go-to Settings >> Permalinks and remove /index.php from the box.

Then login into your Plesk panel and go-to File manager >> httpdocs. Then select “web.config” and click on edit.

After <system.webServer> paste the below code then click to Apply to save it.

<rewrite>
<rules>
<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” />
</conditions>
<action type=”Rewrite” url=”index.php” />
</rule>
</rules>
</rewrite>

Was this helpful?

3 / 0

Leave a Reply 0

Your email address will not be published. Required fields are marked *