This issue came up for me recently and here’s how to fix it:

1) Create web.config in notepad.
2) Paste this code into it:


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<conditions>
<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>
</system.webServer>
</configuration>

3) Use FTP to upload it to the WordPress root directory (Where the wp-config lives)
4) In WordPress dashboard, Settings > Permalinks, and change the structure to Plain and then back to ‘Post Name’

 

 

Leave a Reply