PHPLD Default URL Issue

Discussion in 'PHP' started by markpenny, Feb 12, 2012.

  1. #1
    Why is my directory opening as http://mydomain.com instead of http://www.mydomain.com when i type mydomain.com in the browser?

    I have to say that in my admin settings the url is set to http://www.mydomain.com/.
     
    markpenny, Feb 12, 2012 IP
  2. ROOFIS

    ROOFIS Well-Known Member

    Messages:
    1,234
    Likes Received:
    30
    Best Answers:
    5
    Trophy Points:
    120
    #2
    Do you have a .htaccess file in root? it could be 301 redirecting 'www' to 'non www' and overriding admin settings.
     
    ROOFIS, Feb 12, 2012 IP
  3. dvduval

    dvduval Notable Member

    Messages:
    3,372
    Likes Received:
    356
    Best Answers:
    1
    Trophy Points:
    260
    #3
    That sounds correct to me. Try temporarily removing your htaccess file and see if that fixes the problem. If yes, you probably will want to take a look at the htaccess file itself or make a support ticket with phpLD.
     
    dvduval, Feb 13, 2012 IP