how do i stop my server from automatically redirecting it to non-www?

Discussion in 'Site & Server Administration' started by dimmakherbs, May 9, 2009.

  1. #1
    i have several sites that my server directs to www or non-www
    there is one site in particular that this is a problem
    if you type in www.mysite.com it will send you to mysite.com
    if i do a mod rewrite to send to www always i get a redirect loop error.

    how do i fix this?
     
    dimmakherbs, May 9, 2009 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Check out your DNS record on your server, or check your .htaccess in public_html.

    What control panel do you have available?
     
    SSANZ, May 9, 2009 IP
  3. dimmakherbs

    dimmakherbs Active Member

    Messages:
    1,330
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    90
    #3
    CPanel, its def not .htacess, server guys are saying it must be script related?
     
    dimmakherbs, May 9, 2009 IP
  4. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yep, sounds like its script related - Thats why i said .htaccess.

    What script(s) are you running?
     
    SSANZ, May 10, 2009 IP
  5. JPC-NickO

    JPC-NickO Guest

    Messages:
    69
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hi,

    It is almost certain that it is your script if with NOTHING in the .htaccess it is still redirecting. Do check and confirm this before proceeding.

    I'd suggest you list what scripts you have so someone can tell you where to make the required changes. Most likely this will be in the config.php, configuration.php, file depending on what script.
     
    JPC-NickO, May 10, 2009 IP