domain.com to www.domain.com

Discussion in 'General' started by swordsaint, Oct 20, 2010.

  1. swordsaint

    swordsaint New Member

    How do i redirect domain.com to www.domain.com i tired to edit my .htaccess file but it wont work. I have mod_rewrite on i use it for sef urls in joomla.

    I also set Auto Subdomain to www and it still wont work:confused:
     
  2. damir

    damir New Member

    Setup a A record in DNS with something like this and enable Auto Subdomain:

    domain.com in A www in A ip.dd.re.ss
    www in A ip.dd.re.ss

    I have it like that and it works without htacess.
     
  3. swordsaint

    swordsaint New Member

    I have domain.com in A and www. in A

    whats is ip.dd.re.ss?
     
  4. damir

    damir New Member

    that's ipadress.
     
  5. swordsaint

    swordsaint New Member

    i have www ipadress a and domain.com ipadress a records

    A dial4tech.com 67.40.184.249
    A www 67.40.184.249
     
  6. falko

    falko Super Moderator ISPConfig Developer

    There's no A record for dial4tech.com:

    Code:
    mh1:~# dig dial4tech.com
    
    ; <<>> DiG 9.3.4 <<>> dial4tech.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 45248
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;dial4tech.com.                 IN      A
    
    ;; AUTHORITY SECTION:
    dial4tech.com.          86400   IN      SOA     ns1.dial4tech.com. john.dial4tech.com. 2010101901 28800 7200 604800 86400
    
    ;; Query time: 252 msec
    ;; SERVER: 213.133.98.98#53(213.133.98.98)
    ;; WHEN: Thu Oct 21 15:16:24 2010
    ;; MSG SIZE  rcvd: 76
    
    mh1:~#
    I think you forgot the dot in your DNS record:

    Code:
    A dial4tech.com[COLOR="Red"][B].[/B][/COLOR] 67.40.184.249
     
  7. swordsaint

    swordsaint New Member

     
  8. Toucan

    Toucan Member

    Yes, the "." as the suffix of the domain indicates that 'that' is the fully qualified domain name
     
  9. swordsaint

    swordsaint New Member

    Thanks it works:D
     

Share This Page