I want covert aspx page into html at runtime for SEO.
like example
localhost:45556/index.aspx => localhost:45556/index.html
I want covert aspx page into html at runtime for SEO.
like example
localhost:45556/index.aspx => localhost:45556/index.html
3
Answers
Google wouldn’t care if it’s aspx or html. The more important part is that the domain name tells something about what the site is about, and the URL path tells something about the page you are on.
http://www.domain.com/shirts/tshirts/green/ is a better URL than http://www.domain.com/prodId=3999944
You could use the IIS Rewrite Module like described in this post:
Remove HTML or ASPX Extension
and change the match URl criteria to
and change the action to the following
You can do this in c#.NET to change the .aspx to .html
Please put this code in your Global.asax file.