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
- On root of hosting open web.config file with your favourite editor.
- 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>
- Save file and upload.
- Login into wordpress admin goto > Settings > Permalinks. Under Common settings click Post name option and click save.
- 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!
Thanks a lots.
Very great post. I just stumbled upon your weblog and wished to say that I have really loved browsing your blog posts.
In any case I will be subscribing in your feed and I am hoping you write once more soon!