The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

PHP3 giving 406 errors without the www. but..

Discussion in 'General Discussion' started by mousepotatoe, Jan 5, 2010.

  1. mousepotatoe

    mousepotatoe Active Member

    Joined:
    Dec 17, 2003
    Messages:
    36
    Likes Received:
    0
    Trophy Points:
    6
    I have a new client whos' website I have restored from a full backup.
    The site uses php3 files and runs fine with the www. in the url.
    However when you access the site just with http://domain.com/whatever.php3 it is giving 406 errors.

    Any ideas what would allow the pages to display properly with www. in the url, but not without the www.? What do i need to change?

    Thanks for your help!!
     
  2. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Please make sure that you have the below entry in your httpd.conf file for your domain:

    ServerName domain.tld
    ServerAlias www.domain.tld
     

Share This Page