none www to www ???

Discussion in 'HTML & Website Design' started by computergeeks, Nov 6, 2008.

  1. #1
    hi im on a windows server and getting no help from my host!
    i need to know what code do i use to fowerd my none www to my www for my domain ..

    i was told i cannot use a .htaccess they say that dose not work qwith a windows server!

    i have been stuck on this for weeks.. can any one help?

    thanks!
     
    computergeeks, Nov 6, 2008 IP
  2. computergeeks

    computergeeks Active Member

    Messages:
    341
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    hi guys its Ross again . really stuck on this none www to www thing..
    dose anyone know how to fix this? or can some on esend me to a website that has the info on it?
    thanks
     
    computergeeks, Nov 6, 2008 IP
  3. wd_2k6

    wd_2k6 Peon

    Messages:
    1,740
    Likes Received:
    54
    Best Answers:
    0
    Trophy Points:
    0
    #3
    So your host does not have apache I guess, why is this, i'd change host to be honest i'll have a look for you but my knowledge is limited without htaccess!

    After a quick look there is mod_rewrite if you have apache, or I think you may be able to do a redirect in the head of a document (see last 2 posts using PHP i think), a lot of hassle if you ask me why windows server?
     
    wd_2k6, Nov 6, 2008 IP
  4. computergeeks

    computergeeks Active Member

    Messages:
    341
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #4
    i have a windows vps.
     
    computergeeks, Nov 6, 2008 IP
  5. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #5
    Apache is a linux based web server module and unrelated to the OP's question.

    Hi does this help?
    < %@ Language=VBScript %>
    < %
    Response.Status="301 Moved Permanently"
    Response.AddHeader "Location", http://www.mydomainname.com
    %>

    I don't know much about windows server environments other than they cost more and I don't like them lol..

    I got that from here http://www.webpronews.com/topnews/2...-on-iis-nonwww-domain-name-to-www-domain-name

    I was reading over this as well but it went right over my head
    http://seablick.com/blog/articletype/articleview/articleid/44.aspx

    hope that helps,
    Nigel
     
    Nigel Lew, Nov 6, 2008 IP
  6. computergeeks

    computergeeks Active Member

    Messages:
    341
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #6
    .htaccess is for apache web server only. on windows (IIS) you need to either do it in code or through IIS


    how do i turn on IIS in plesk?
     
    computergeeks, Nov 6, 2008 IP
  7. computergeeks

    computergeeks Active Member

    Messages:
    341
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #7
    sorry guys i still dont under stand what i should name the file?
    i can put that code in but what is the file name going to be for my notepad file? and what is IIS? is this something i have to turn on?
     
    computergeeks, Nov 6, 2008 IP
  8. Nigel Lew

    Nigel Lew Notable Member

    Messages:
    4,642
    Likes Received:
    406
    Best Answers:
    21
    Trophy Points:
    295
    #8
    As far as I recollect from messing with a local windows server IIS is running or you would not see anything. That is Internet Information Services or the server.

    I would post your question in either the programming section or the site and server information forum on this site. You will get a much sounder response than you will in the html forum.

    Server forum http://forums.digitalpoint.com/forumdisplay.php?f=18
    programming http://forums.digitalpoint.com/forumdisplay.php?f=17

    either one should work but programming has some asp or windows related topics floating around.

    Here is your question posted by someone else
    http://forums.digitalpoint.com/showthread.php?t=999594&highlight=redirect+windows+server

    and here are all the returns I got when I searched DP for your problem
    http://forums.digitalpoint.com/search.php?searchid=14715744

    hope that helps,
    Nigel
     
    Nigel Lew, Nov 6, 2008 IP