SEO friendly url in ASP.NET

What is SEO Friendly URL?

URL Rewriting makes your website SEO Friendly, more meaningful and independent to website’s resource. it works on web-server.

How it works?

  • Step1: Browser hits SEO Friendly URL to server.
  • Step2: Server apply rewrite rule defined by administrator and fetches original URL.
  • Step3: Server performs operation on original URL and Code.
  • Step4: Server converts response to me delivered on SEO Friendly URL whi was recieved earliear.

URL rewrite process

Implementing URL Rewriting into ASP.NET

  • Step 1: Install URL Rewrite Module on your IIS server
  • Step2: TO perform URL Rewriting, Now we need to update our web config and write some rules to URL rewrite. As Follows:
  • <?xml version="1.0" encoding="UTF-8"?>
    <configuration>
        <system.web>
       ...
       ...
        </system.web>
        <system.webServer>
            <rewrite>
                <rules>
                    <rule name="SEOURL">
                        <match url="classified/(\D+)(\/)*$" />
                        <action type="Rewrite" url="/classified.aspx?id={R:1}" />
                    </rule>
                </rules>
            </rewrite>
        </system.webServer>
    </configuration>
    

    Please feel free to raise your query…

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>