windows server and getting no help from my host

Discussion in 'Site & Server Administration' 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. Mxhub

    Mxhub Active Member

    Messages:
    474
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    55
    #2
    You can use a .htaccess to do that.

    i have done that to my site..
    if you go mxhub.com , it redirect you to www.mxhub.com

    pm you the code.

    btw, make sure you have mod_rewrite turn on first.


    --
    joseph
     
    Mxhub, Nov 6, 2008 IP
  3. nikg

    nikg Well-Known Member

    Messages:
    642
    Likes Received:
    25
    Best Answers:
    0
    Trophy Points:
    120
    #3
    If it's a windows server and you are using IIS, then .htaccess is not working.

    There are various solutions. One is create a record in your DNS entries.

    the other one and realy simple is the following:

    You may create 2 sites in IIS, one with host header of www.domain.com and the other with host header of domain.com. After doing that, go to the second site and set up redirection rule in that site, to redirect all requests to www.domain.com
     
    nikg, Nov 7, 2008 IP