Problem with redirect non www to www domain

Discussion in 'Apache' started by Tigerboy, Oct 3, 2009.

  1. #1
    Hi,

    I have a problem with redirecting my non www domain to www domain. I see there are many threads opened with this problem but i don't understand HOW TO DO. My domain is hosted on a windows server. I read many forums many websites articles about this problem but still understand. It is neccesary to use a .htaccess file? I found this code

    < %@ Language=VBScript %>
    < %
    Response.Status=”301 Moved Permanently”
    Response.AddHeader “Location”, http://www.example.com
    %>

    But where should i put this code? Please if someone can help me with exact steps that should i do!
    Also being a new webmaster when i manage my website i delete some pages. Now in google webmaster tools i have crawl errors : NOT FOUND! What should i do to resolve this problem? How can i redirect that removed pages?
    Thanks a lot!
     
    Tigerboy, Oct 3, 2009 IP
  2. Tigerboy

    Tigerboy Well-Known Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #2
    All my pages are .html .
    What should i do?
    Please help me!
     
    Tigerboy, Oct 9, 2009 IP
  3. Tigerboy

    Tigerboy Well-Known Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    111
    #3
    Hy
    Finally i resolve my problem...I contact my domain service and change my domain from the Windows Server (where i'm hosted now) on a Linux Server. Now i can use the .htaccess file without problems.
    Thanks!
     
    Tigerboy, Oct 12, 2009 IP