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
    <system.webServer>
    ...
    <rewrite>
    <rules>
    <rule name="SEO friendly URL " 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>
    
  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.
« »

© 2017 IT insight blog.