Forum Moderators: phranque

Message Too Old, No Replies

Redirects

Best way to perform a redirect

         

cosbot

2:43 pm on Nov 4, 2003 (gmt 0)



Hi folks

I'll cut straight to the point.

I need to know the best way to perform a redirect to a homepage without being penalised by the search engines.

Our site used to run through a frameset which we are no longer using. The index.htm file now needs to point to an aspx file (the new homepage) in a different folder. I just wanted to put a redirect on the index.htm to jump it to the new page but i'm reading that meta refresh and javascript navigates shouldn't be used.

So what's the alternative?

Cheers.

Mohamed_E

3:13 pm on Nov 4, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Best way is with a RedirectPermanent. With an apache server that goes in the .htaccess file:

RedirectPermanent oldpage newurl

Note that newurl must be an absolute URL, not a relative one, even if the new page is on the same server or even in the same directory.

No idea how you do it with an IIS server, but surely there must be a way.

<added>And, of course, Welcome to WebmasterWorld, cosbot!</added>