Monday 14 December 2015

WordPress You should update your web.config now - Permalink


WordPress You should update your web.config now - Permalink
To solve this issue

(1)Kindly create the web.config file
(2)Paste the below code in web.config file
(3)Upload it on wordpress root directory.
(4)Change the permalink to post name and check 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>

Note : How to create web.config file

Open a new text file, paste the code given above in the file.  In the text file go to File->Save As and name it Web.Config and set the Save As Type to All Files

1 comment:

Martin Whitaker said...

This solved my problem! Thanks! :D