Click here to Skip to main content
15,867,756 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
See more:
Hi How to implement SEO friendly URL in asp.net.
at present my query string like "sitename/?companyname="anycompanyname"

But i want display url like this sitename/anycompanyname

How to do this task any one know this task please reply.


Thanks& Regards
Peter
Posted

Hi,

SEO friendly URL in asp.net can be implemented either in web config file or in Global.ascx file.

Best Practices:

1. 301 permanent redirection:

Search engines consider these as two seperate URL's: (Example) http://www.example.com and http://example.com . But we know its the one and the same site. This is a SEO killer.

So while development make sure redirection is done to a single URL.

Its better we redirect to http://www.example.com .

2. No more Underscores, Just Hyphens from now:

Underscores acts as a joiner and hyphens acts a seperator. So its the hyphens that will provide the correct meaning to search engines.

Please use Hyphens for inner pages and no underscores for the sites to be developed in future.
 
Share this answer
 
I would suggest you check out the URL rewrite module:

See a nice article:
url-rewrite-module/iis-url-rewriting-and-aspnet-routing[^]

And see this previous CP Q&A:
asp.net url rewriting[^]
Hide page name from url[^]

Good luck,
Edo
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900