Page Redirect

Discussion in 'Programming' started by Rqqepqqq, Nov 15, 2011.

  1. Rqqepqqq New Member

    Member Since:
    Jun 7, 2011
    Message Count:
    180
    Likes Received:
    1
    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
  2. shrivcom New Member

    Member Since:
    Nov 15, 2011
    Message Count:
    19
    Likes Received:
    0
    Is your page dynamic? If yes then which language is used to build that page?
  3. geethaa New Member

    Member Since:
    Feb 18, 2010
    Message Count:
    12
    Likes Received:
    0
    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.
  4. Jacob_Thompson Member

    Member Since:
    Sep 27, 2011
    Message Count:
    86
    Likes Received:
    0
    Occupation:
    IT Professional
    Thanks geetha. I also wants to redirect my page. It will be helpful for me too.
  5. lorden55 New Member

    Member Since:
    May 7, 2012
    Message Count:
    11
    Likes Received:
    0
    this code
  6. kenrylesso Member

    Member Since:
    Apr 5, 2012
    Message Count:
    44
    Likes Received:
    1
    Yes, redirection is the only solution to this problem. This way you will get traffic as well as the link will not be broken.
  7. sonu sing New Member

    Member Since:
    May 3, 2012
    Message Count:
    22
    Likes Received:
    0
    Occupation:
    SEO
    Location:
    Faridabad
    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>

Share This Page