Forum Moderators: phranque

Message Too Old, No Replies

URL redirection is Slow

Which is the fast One, and better

         

experienced

4:55 am on Jul 17, 2004 (gmt 0)

10+ Year Member



Hi,

I have a domain which is redirecting to another domain, as this is url redirection this is very slow. Is there anything better then url redirection.

Thanks
Exp...

BertieB

12:58 pm on Jul 17, 2004 (gmt 0)

10+ Year Member



Use a 301 "Page moved permanently" redirect. You can do this either in script or in your .htaccess file.

Append to the .htaccess file:


redirect 301 /foo/bar.htm http://www.widget.com/newfoo/newbar.htm

Or for ASP, add the following to the top of the document:


<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "/newfoo.asp"
%>