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"?>
<rule name="wordpress" patternSyntax="Wildcard">
<match url="*"/>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true"/>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true"/>
<action type="Rewrite" url="index.php"/>

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