Hello, I have a webpage that is indexed in Google. I dont want it to disappear off Google but the page is just a test page and it gets hits. I dont want visitors to see that page but rather be redirected to my homepage. Can anyone tell me how I coulddo this? Thanks
If you want to redirect your visitors to a new page then place the following HTML redirect code between the <HEAD> and </HEAD> tags of your HTML code. <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yourdomain.com/index.html"> The above HTML redirect code will redirect your visitors to another web page instantly. The content="0; may be changed to the number of seconds you want the browser to wait before redirecting.
Yes, redirection is the only solution to this problem. This way you will get traffic as well as the link will not be broken.
You can use this 301 redirect code to resolve this problem. <script runat="server"> private void Page_Load(object sender, System.EventArgs e) { Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.new-url.com"); } </script>