301 code

Discussion in 'Site & Server Administration' started by stst, Oct 16, 2008.

  1. #1
    Please advice,

    I have few htm pages with good google rating.

    Now I have redo the site to asp one.

    How I can do 301 code in htm pages to be redirected to relevant asp pages – is there any line of code which I can place on these few htm pages – so, without having .htaccess file.

    Thank you for advice.

    Steve
     
    stst, Oct 16, 2008 IP
  2. jmatthew3

    jmatthew3 Peon

    Messages:
    29
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can't put a 301 redirect inside HTML. You have to do it using something like PHP or using apache's mod_rewrite.

    I would look into having ASP handle files with HTM extensions. Well, that, or there may be something similar to mod_rewrite for IIS.
     
    jmatthew3, Oct 16, 2008 IP
  3. stst

    stst Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you for reply.

    Hmm, after doing few php and asp sites in the past, I know how to do that in there.

    But simple htm???? – there is actually no any line of code for find which can resolve the problem.

    Yes, there are refresh tags, but I don’t want use that, as I want to keep the rating.

    Any solution – THANK YOU.

    S
     
    stst, Oct 17, 2008 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    Rather than to change the file from html to ASP, use ASP in HTML code and as it as html page as mentioned by jmatthew3. You will need to make some changes in IIS in order to do this.

    Kailash
     
    kailash, Oct 17, 2008 IP
  5. pondlife

    pondlife Peon

    Messages:
    898
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #5
    pondlife, Oct 20, 2008 IP