Changing file extension from html to aspx and SEO

I have a website that is a static site therefore it has files which have a html extension.

Now I have built a CMS system in asp and everything is working well. But I realized that now my pages are with the aspx extension. Therefore a page which was aboutdothtml has become aboutdotaspx.

Since the static website has been online for some time the pages on the website are indexed well. I’m afraid that I would loose the ranking I have once I switch to the new site:(.

What is the best solution for this situation?

If there a way that I can get the aspx page rewritten as html page and the address bar shows aboutdothtml in the address bar even if the page has been created in aspx? Or should I use a 301 redirect.

What is the best way to do a 301 redirect? Is it using the .htaccess file and if so please let me know the code that I should use there.

Thanks in advance.

I don’t think that this is possible. Yes you can redirect your pages but in reality once you change your web page extension file then all acrued backlinks to the previous page extension will be lost. This happend to my site too. However any backlinks to your main domian homepage will remain.

I think the meta referesh tag can be used to redirect and you would not be penalized by search engines if you do that.

If anyone knows please confirm whether this is correct or not.

Thanks and in advance

Pali Madra

Why not rewrite the URLs with That way, your changes won’t even be detected.