1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

301Redirect Help

Discussion in 'Site & Server Administration' started by jrwall68, Jun 2, 2006.

  1. #1
    I'm really frustrated trying to figure out how to use a 301Redirect. I'd really appreciate it is someone could walk me through this as Godaddy has been unhelpful.

    I am trying to Redirect http://internationaladoptionstories.com to http://www.internationaladoptionstories.com


    I have an ASP Hosting package (which I assume means I need to use .asp code)

    Godaddy offers this article that includes the code for the redirect, but I don't know how to use it.

    http://help.godaddy.com/article.php?article_id=234&topic_id=&&

    The .asp code they offer is:

    <%
    Response.Status = "301 Moved Permanently"
    Response.AddHeader "Location", "http://www.newdomain.com/newpage.html"
    Response.End
    %>

    My question is about the .htm extension of my pages. How does this translate to .asp?

    Thank you for your help. I'm trying to learn this so that I can SEO some page names and think the home page is a good place to start.

    john
     
    jrwall68, Jun 2, 2006 IP
  2. joelbauca

    joelbauca Peon

    Messages:
    39
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    this will require IIS document mapping, which i think your host will not allow
     
    joelbauca, Jun 2, 2006 IP
  3. tvelasquez

    tvelasquez Peon

    Messages:
    300
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    tvelasquez, Jun 2, 2006 IP
  4. jrwall68

    jrwall68 Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks for the tips and I think you might be right. Godaddy won't support the .htaccess file.

    I've read through tons of pages about 301s, including the suggested sites, but they all seem to point to .htaccess files.

    There's got to be another way if I can't access the file and I don't want to use a script.

    Any more ideas?

    I appreciate you taking the time to offer advice.
     
    jrwall68, Jun 2, 2006 IP
  5. tvelasquez

    tvelasquez Peon

    Messages:
    300
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There might be, user lars suggested using php, here is his comments, but I have not looked into that yet:
    I think a php redirect like:

    <?php
    header("Location: http://www.example.com/");
    exit;
    ?>
    would work.
    You could read more at http://php.net/header
     
    tvelasquez, Jun 2, 2006 IP
  6. MaxPowers

    MaxPowers Peon

    Messages:
    261
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #6
    windows servers don't use htaccess the same way Apache does. This code looks like it goes into the 'original filename' instead of a central htaccess-type file. Windows servers use a commercial software called isapi-rewrite which needs to be installed on the server by GoDaddy.

    I'm not an expert on IIS or ASP or any other Windoze technology... I just know enough to use Apache and PHP instead ;)
     
    MaxPowers, Jun 3, 2006 IP