CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Posts
    43

    domain does not work without www prefix, but with it it does

    when i type paulgtremblay.com it does not work,
    but when i type www.paulgtremblay.com it does..

    What can be the problem?
    I use a php redirect on my site.

  2. #2
    Join Date
    Aug 2007
    Location
    Birmingham, UK
    Posts
    360

    Re: domain does not work without www prefix, but with it it does

    Both versions of the domain name (with and without the www. prefix) resolve to the same IP adress for me, so I presume that the web server software is only configured for the version with the www prefix and not for the version without.

  3. #3
    Join Date
    May 2002
    Posts
    10,943

    Re: domain does not work without www prefix, but with it it does

    The www is simply a sub domain. This is a complete DNS configuration. You can set example.com and www.example.com to point to two totally separate destinations, if you wanted. In order for them to point to the exact same thing, both need to be in your DNS zone file.
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  4. #4
    Join Date
    May 2002
    Posts
    10,943

    Re: domain does not work without www prefix, but with it it does

    [ moved ]
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  5. #5
    Join Date
    Aug 2007
    Location
    Birmingham, UK
    Posts
    360

    Re: domain does not work without www prefix, but with it it does

    @PeejAvery - Both domain names (with and without www) are already in the zone file and do resolve to the same IP address. This is why I presume it is more a web server configuration issue.

  6. #6
    Join Date
    Mar 2004
    Location
    Prague, Czech Republic, EU
    Posts
    1,701

    Re: domain does not work without www prefix, but with it it does

    Where comes DNS to play in this scenario? I think that PeejAvery is right. I could hardly imagine your scenario.
    • Make it run.
    • Make it right.
    • Make it fast.

    Don't hesitate to rate my post.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured