Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    May 2008
    Posts
    6

    Default My domain doesnt work without www

    Regards all....
    I think I tried every single solution for these mentioned online anywhere... SO here is the deal...


    I have mydomain.com registered.. and I am using ns1 and ns2 as nameservers for this domain....

    Both are added in dns...
    but when I type www.mydomain.com everything is ok .. but if I type without www so just mydomain.com in FF and Chrome redirect happends to www.mydomain.com/home/username/publichtml
    and in IE it shows error 404 page not found

    I have A record I have ns1 and ns2 record I checked httpd conf file seems to be ok

    I have another domain on that server setup ed exactly like this one and that other works ok ..

    So anybody have a clue whats wrong (yes my server alias in httpd config is ok )

  2. #2
    Registered User
    Join Date
    Feb 2010
    Location
    My Darling Egypt
    Posts
    2

    Wink

    hello, democreations

    I think you need to check the VirtualHost entry in your httpd conf file

    It Should be under VirtualHost of Site

    Code:
    ServerName domainname.com
    ServerAlias www.domainname.com
    then restart httpd and try to get connected without www

    Best Regards

  3. #3
    Member asent's Avatar
    Join Date
    Apr 2005
    Posts
    32

    Default

    Also check your account in cpanel. Should be added only as domain.com. Did you add it as www.domain.com?

    The httpd.conf would eventually get overwritten. It's best to find the root cause. What does the virtualhost look like? Can you post it? Are there dup entries (multiple virtualhost for that one domain)?
    Last edited by asent; 03-04-2010 at 05:03 AM.

  4. #4
    Member
    Join Date
    May 2008
    Posts
    6

    Default Domain is added as mydomain.com

    Everything is setup exactly as on another domain on the same server which is working..

    mydomain.com. 86400 IN SOA ns1.mydomain.com.
    mydomain.com. In NS ns1.mydomain.com.
    mydomain.com. In NS ns2.mydomain.com.
    mydomain.com. In A xxx.xxx.xxx.xxx (my ip)
    localhost In A 127.0.0.1
    www IN cname mydomain.com.
    ns1 IN xxx.xxx.xxx.xxx (my ip)
    ns2 IN xxx.xxx.xxx.xxx (my ip)


    HTTPD CONF
    <VirtualHost xxx.xxx.xxx.xxx:80>
    ServerName mydomain.com
    ServerAlias www.mydomain.com
    DocumentRoot /home/USERNAME/public_html

  5. #5
    Member
    Join Date
    Jul 2006
    Posts
    290

    Default

    Check your .htaccess files for redirects.

  6. #6
    Member
    Join Date
    May 2008
    Posts
    6

    Default There isnt any htaccess in directory or directory above

    There isnt any htaccess in directory or directory above

Similar Threads & Tags
Similar threads

  1. www. doesnt work and http:// does work help me!
    By kingk in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 01-29-2008, 12:35 AM
  2. www. DOES NOT work with my domain name?!!
    By Cap10Kirk in forum New User Questions
    Replies: 6
    Last Post: 12-17-2006, 02:52 PM
  3. SSL certificate doesnt work if using "www".domain.com
    By sh4ka in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-10-2006, 06:47 AM
  4. Need help. WWW does not work but the domain works without the WWW
    By urbanhostonline in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 09-28-2005, 10:19 PM
  5. Moved SSL crt restarted httpd but https doesnt work for domain
    By ehaskra in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-02-2005, 12:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube