redirect 301 on windows server - Please help!

Discussion in 'Site & Server Administration' started by YSeo, Dec 7, 2008.

  1. #1
    Hey guys,

    I have been trying to find an answer but I Couldn't.

    Is there anybody that can tell me how do I make 301 redirect on windows server , especially on Godaddy?

    Please , this is very important to me!

    Thanks
     
    YSeo, Dec 7, 2008 IP
  2. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #2
    You can set 301 redirection using ASP or PHP script. You can also use ISAPIRwrite rule to set 301 redirection.

    Kailash
     
    kailash, Dec 9, 2008 IP
  3. YSeo

    YSeo Peon

    Messages:
    533
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    "You can also use ISAPIRwrite rule to set 301 redirection"
    what is this? is it for non-www to www? (that's what I need)
    can you provide some more info?
    thanks
     
    YSeo, Dec 9, 2008 IP
  4. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #4
    To redirect your domain to www using ISAPI Rewrite rule:

    RewriteCond Host: ^example\.com
    RewriteRule (.*) http\://www\.example\.com$1 [I,RP]

    You will need to write this code in httpd.ini file. You can provide this to your host, they should set it for you.

    Kailash
     
    kailash, Dec 9, 2008 IP
  5. YSeo

    YSeo Peon

    Messages:
    533
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Kailash . thank you very much for you help! is this the only code should be in the file ?
    is there any way I can do it myself without any help from Godaddy? just create the file and upload it to the server? is this for a WINDOWS SERVER as well?

    Thanks again for your help!
     
    YSeo, Dec 9, 2008 IP
  6. YSeo

    YSeo Peon

    Messages:
    533
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I failed doing that . can you please provide me with the exact code should be in the httpd.ini ( the file I should upload to the server)

    Thanks!
     
    YSeo, Dec 10, 2008 IP
  7. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #7
    The code that I have provided in my previous post should work with on the server using ISAPI filter (Provided by Helicon). If your host have installed lite version then you can not do it from your end. You will need to provide the rules to them and they should set it for you.

    You just need to replace example and com in previous rule with your actual domain and TLD.

    Kailash
     
    kailash, Dec 10, 2008 IP