Results 1 to 4 of 4
  1. #1
    Solushunz is offline Freshman
    Join Date
    Jul 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default redirect to another page

    I have created this code to redirect another page, but its not working.
    please tell if there is any correction.
    Code:
    <%@ Language=VBScript %>
    <%
    Response.Status="301 Moved Permanently"
    Response.AddHeader "address"
    %>

  2. #2
    Solushunz is offline Freshman
    Join Date
    Jul 2010
    Posts
    12
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default PLease reply.

    If any one have solutions of my query, then just drop your reply.
    Thank you.

  3. #3
    manik's Avatar
    manik is online now Om Shanti!
    Join Date
    Apr 2008
    Location
    Boston, USA
    Posts
    13,172
    Thanks
    744
    Thanked 699 Times in 550 Posts
    Blog Entries
    4
    Feedback Score
    4 (100%)

    Default

    you are missing reference to HttpContext. This code below is in C#. You would get the idea what to do.

    string destUrl="http://www.webcosmoforums.com/"; //change this url
    HttpContext context = HttpContext.Current;
    context.Response.Status = "301 Moved Permanently";
    context.Response.AddHeader("Location", destUrl);
    Free Classified Ads & BUSINESS/PROFESSIONAL SOCIAL NETWORK


  4. #4
    jassmee is offline Sophomore
    Join Date
    Mar 2012
    Posts
    144
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    in php we can used <?php header("location:file name"); ?>

Similar Threads

  1. Partial redirect?
    By bgjyd834 in forum Domain Names
    Replies: 2
    Last Post: 06-29-2011, 07:33 AM
  2. How to redirect non www url to www ?
    By Logicspice in forum Search Engine Optimization
    Replies: 1
    Last Post: 03-24-2011, 01:46 AM
  3. 301 redirect?
    By sarita in forum Web Development - Programming & Coding
    Replies: 3
    Last Post: 12-28-2009, 07:19 AM
  4. 301 Redirect ASP .Net
    By manik in forum ASP
    Replies: 1
    Last Post: 01-16-2009, 11:28 PM
  5. 301 Redirect - How to
    By manik in forum Search Engine Optimization
    Replies: 1
    Last Post: 06-19-2008, 12:27 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •