IT insight blog

Boost IT troubleshooting

SEO friendly URL in web.config

Writing SEO friendly url is most important for all website which host on window server. Below step is showing how to add the code in web.config file for wordpress.
In web.config file

  1. On root of hosting open web.config file with your favourite editor.
  2. then add below code
    <rule name="SEO friendly URL " 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. Save file and upload.
  4. Login into wordpress admin goto > Settings > Permalinks. Under Common settings click Post name option and click save.
  5. Now try to open site and check the urls. Hope it work.
« »

© 2019 IT insight blog.