Click to See Complete Forum and Search --> : 301 code, without .htaccess file for htm to aspx


fewblue
10-19-2008, 06:42 AM
Hi there,

Probably one unusual question:

I have made new aspx website (based on dnn) and I am hosting it on windows shared hosting plan on go daddy, all that site is completely under mysite/new folder.

However, I had there (in the root) previously htm site with 100 or so htm pages for years now with quite a good google rating.

So, now I have the problem how to point all old htm pages to new ones without losing the rating.

I have check all the 301 codes on line, but all of them actually are little bit more “complicated” for what I am looking for...

Please is there any code that I can simple put in the head of existing htm pages (which will have the function of 301 code) and redirect these pages to new aspx pages (which will of course contain the text from htm pages).

So, just to put is simple: how to use 301 code for mysite.com/oldpage10.htm to mysite.com/new/newpage10.aspx

Thank you for advice.

Sara

ryanbutler
10-19-2008, 04:08 PM
Do you have access to IIS from your host? If you do, I'd add the 301 there. If you have to ask their support staff, I'd go this option first. There's really no code for HTML that takes care of a 301 re-direct.

fewblue
10-20-2008, 06:27 AM
Thank you Ryan,

Yes – I did in the past quite a few php and asp redirects quite easy, and every time is working without any problem.

But here is little bit different somehow:
- Yes, I have access to control panel, but all is now tweaked for aspx, based on dnn, on windows shared hosting;
- It seems that the simplest option is to use “<meta http-equiv="Refresh" content="0;..... “ – I have tested, and although of course the pages are redirected from htm to aspx, the rating is lost;
- (I have remember that 5-6 years ago I had similar problem for htm to asp, and although the rating was 0 after redoing the site, almost few weeks after that it comes back on pr 5 and 4, as it was before – hmmm, it was long time ago and cannot recall exactly, but it was something like that...)

I will double check again IIS if I can do anything in there...

Thank you Ryan once again. And finally its really strange that there is no single html line of code for this – quite incredible after few decades of internet...

Regards, Sara

Major Payne
10-20-2008, 03:52 PM
Might want to read the following carefully:

Don't Damage Your Site's Ranking (http://www.wwwcoder.com/main/parentid/263/site/2668/68/default.aspx)
ASP.NET 301 redirect (http://www.aspcode.net/ASPNET-301-redirect.aspx)
Search Engine Friendly 301 Redirects Without Touching IIS (http://seablick.com/blog/articletype/articleview/articleid/44.aspx)
301 Redirect for .aspx pages (http://www.webproworld.com/discussion-forum/72853-301-redirect-aspx-pages.html)