Forum Moderators: mack
<meta http-equiv="refresh" content="10;
url=http://mynewsite.com/">
I have tested it and it works. In my old html file I put this meta tag at the top of the page (after changing url to new location) and it still loads the old page and then after 4-5 seconds it loads the new page.
Works for me. I hope you don't have too many files to modify. I have 60 :-(
Not unless someone has a better solution?
<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "http://www.yourdomain.com/"
%>
I am hoping this will help keep some of the search engine traffic until the new site gains its own.
Not sure if it is going to work...time will tell.
PS - in your meta tag code - if you change the content="10" to content="0" the page will change without a delay.
Server-side methods are available to generate proper 301-Moved Permanently server responses, and should be used whenever possible. On Apache, see mod_alias and mod_rewrite. For IIS (Windows servers), see ISAPI Rewrite. Most Web scripting languages can also be used to generate server-side redirect responses if your pages are dynamically-generated.
See RFC2616 [w3.org] for a description of HTTP/1.1 server response codes.
Jim