Categories
Windows

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.

5 replies on “SEO friendly URL in web.config”

Hello there, just became aware of your blog through Google, and found that it is really informative.

I am gonna watch out for brussels. I’ll appreciate
if you continue this in future. Numerous people will be benefited from your writing.

Cheers!

My spouse and I stumbled over here from a different web
page and thought I may as well check things out. I like what I see so i am just following you.

Look forward to finding out about your web page again.

/ Hi! I&v7218;#e been following your site for a long time now and finally got the bravery to go ahead and give you a shout out from Houston Tx! Just wanted to tell you keep up the great job!

Leave a Reply

Your email address will not be published. Required fields are marked *