links drop the "www"

Help
rheo
2005-05-04
2012-10-11
  • rheo
    rheo
    2005-05-04

    when i look at my wiki at: http://www.devweb.org/wiki

    all the links direct me to http://devweb.org adresses

    why is it dropping the www ?

     
    • Reini Urban
      Reini Urban
      2005-05-04

      Either you hardcoded SERVER_NAME to "devweb.org" (leave it empty or use "www.devweb.org")
      or your webserver returns "devweb.org" as $_SERVER['SERVER_NAME'], which it shouldn't, because the host from the request_uri is "www.devweb.org"

       
      • rheo
        rheo
        2005-05-04

        For some reason even though my uri is www.devweb.org my SERVER_NAME is devweb.org

        http://www.devweb.org/phpinfo.php

         
        • Reini Urban
          Reini Urban
          2005-05-05

          So you have to override it in config.ini

           
          • rheo
            rheo
            2005-05-05

            oh i see. there's a SERVER_NAME var in the config.ini.

            I hadn't seen that before.

            thank you.