without www

Discussion in 'Domain Names' started by djhassoo, Feb 18, 2008.

  1. #1
    djhassoo, Feb 18, 2008 IP
  2. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    im waiting for reply
     
    djhassoo, Feb 18, 2008 IP
  3. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #3
    You need to create an htaccess file and enter the following. It will redirect traffic from yourdomain.com to www.yourdomain.com.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com [NC]
    RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]
    </IfModule>
    Code (markup):
    There's lots of info on this on the Web. Search Google for URL rewrite or URL redirection with htaccess...
     
    snowbird, Feb 18, 2008 IP
  4. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    djhassoo, Feb 18, 2008 IP
  5. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    could you please tell me how i can create and put that code with .htaccess file. i really dont know anything about .htaccess file even dont know how that is working i just know that is a file only
     
    djhassoo, Feb 18, 2008 IP
  6. snowbird

    snowbird Notable Member

    Messages:
    3,036
    Likes Received:
    395
    Best Answers:
    0
    Trophy Points:
    290
    #6
    Code was right but I inverted the explanation. My comments are corrected now...
     
    snowbird, Feb 18, 2008 IP
  7. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #7
    im still waiting for reply
     
    djhassoo, Feb 19, 2008 IP
  8. AODSolutions

    AODSolutions Peon

    Messages:
    26
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Try snowbirds reply.
     
    AODSolutions, Feb 19, 2008 IP
  9. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    but i dont know where to put that code?
     
    djhassoo, Feb 19, 2008 IP
  10. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Now i know how i can create htaccess file and where to put code but after creating and putting that code in htaccess file now that domain is not opening, after entering url in browser that domain is not opening, could you please tell me what's problem there?
     
    djhassoo, Feb 19, 2008 IP
  11. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #11
    did you change yourdomain.com to the domain you are using this on?
     
    eSpenders.com, Feb 19, 2008 IP
  12. ruby90

    ruby90 Peon

    Messages:
    721
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Make .htaccess file on your server root and put that code
     
    ruby90, Feb 19, 2008 IP
  13. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #13
    im using 2domains on my server, i have created htaccess file in that domain folder, is that right?
     
    djhassoo, Feb 19, 2008 IP
  14. ~ServerPoint~

    ~ServerPoint~ Banned

    Messages:
    1,817
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    80
    #14
    As variant: redirect on server side. Would be useful for SEO issues.
     
    ~ServerPoint~, Feb 20, 2008 IP
  15. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #15
    i had tried all but im failed to redirect, if i redirect to www with cpanel redirection option that is always failed.

    check after doing that with cpanel redirection and htaccess file now site is not opening www.smsdad.com
     
    djhassoo, Feb 20, 2008 IP
  16. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #16
    Problem solved
     
    djhassoo, Feb 20, 2008 IP
  17. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #17
    congrats
    what fixed the issue
    PeAcE
     
    eSpenders.com, Feb 20, 2008 IP
  18. devilishqueen

    devilishqueen Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #18
    May i ask what did u do to solve your problem? Im having similar issues with my subdomain..

    www.web.blog-gurus.info used to show as error page.. but http://web.blog-gurus.info works perfectly fine.. i needed to do a redirect from non www to www format so ..i tried to tweak the dns zones, but seems like i didn't do it quite right.

    www.web.blog-gurus.info is showing the same like my other domain.. www.sari-sari.org

    Would greatly appreciate if any one here could help me.. :(
     
    devilishqueen, Feb 20, 2008 IP
  19. djhassoo

    djhassoo Guest

    Messages:
    184
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #19
    i've contacted with my hosting company, they give me bit diffrent code after putting that code my problem solved, i guess every hosting company have some kinda diffrent code im not sure, try to contact with your hosting company.
     
    djhassoo, Feb 20, 2008 IP
  20. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #20
    yea i think some host disable/turn off modrewrite
     
    eSpenders.com, Feb 20, 2008 IP