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.