Activity Stream
48,167 MEMBERS
6828 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Super Member

    Default Apache2 www. works but http:// redirects to other website

    Hi, on my server I have two websites

    I only just added the second website today

    the first website that I added a couple of months ago works flawlessly

    this new website works almost flawlessly.

    I added the new website in apache but for some reason when I go to it's url without www. it redirects to the other website on my server

    when I use www. it works fine

    Please help me, I've been messing about with server stuff for hours so I am at the point where I am getting that "will this ever end" feeling
    Sp32 Reviewed by Sp32 on . Apache2 www. works but http:// redirects to other website Hi, on my server I have two websites I only just added the second website today the first website that I added a couple of months ago works flawlessly this new website works almost flawlessly. I added the new website in apache but for some reason when I go to it's url without www. it redirects to the other website on my server Rating: 5

    So kiss me and smile for me, say that you'll wait for me <'3

  2.   Sponsored Links

  3.     
    #2
    Member
    Check virtual hosts records, compare them..

  4.     
    #3
    Super Member
    Thanks for replying, I've done that and they're both the same apart from being in different directories and having different domains

    So kiss me and smile for me, say that you'll wait for me <'3

  5.     
    #4
    Member
    Are you sure you have defined in the hosts file for your new site:
    www.yoursite.com. IN A xx.xx.xx.xxx ?

    If it's just "yoursite.com." it won't work with www.

  6.     
    #5
    Super Member
    By hosts I'm guess my apache2.conf? If so I have:

    Code: 
    <VirtualHost *:80>
    ServerName www.x.com
    ServerAlias x.com www.x.com http://x.com
    DocumentRoot /var/x/
    ErrorLog logs/x.com-error_log
    CustomLog logs/x.com-access_log combined
    ServerAdmin admin@x.com
    </VirtualHost>
    
    
    <VirtualHost *:80>
    ServerName www.x.org
    ServerAlias x.org www.x.org
    DocumentRoot /var/x/
    ErrorLog logs/x.org-error_log
    CustomLog logs/x.org-access_log combined
    ServerAdmin admin@x.org
    </VirtualHost>

    So kiss me and smile for me, say that you'll wait for me <'3

  7.     
    #6
    Member
    Your SOA records for "TheU********Forum" are fine, and site works with and without www, or are you talking about other Website? Just check its SOA records, if there's "www.yoursite.com." line, it'll work..

  8.     
    #7
    Super Member
    Lol, thanks, I can't believe this, I've been searching around all over my server trying to figure out what I've done wrong and I hadn't done anything wrong it was just my lame browser not working properly..

    I tested in IE and http:// worked fine first time..

    Thanks for that J, I appreciate it +rep'd

    Also how did you find out my domain (Just curious)

    So kiss me and smile for me, say that you'll wait for me <'3

  9.     
    #8
    Member
    Checked the IP..

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. New website and new works :)
    By yuval10203 in forum Graphics Area
    Replies: 19
    Last Post: 19th Feb 2012, 01:55 AM
  2. Is there any tool to check redirects from a website?
    By IceTea in forum Webmaster Discussion
    Replies: 0
    Last Post: 8th Jan 2012, 04:58 PM
  3. Review my website http://fdbooks.net
    By nt128 in forum Site Reviews
    Replies: 10
    Last Post: 29th Dec 2011, 06:13 PM
  4. Sale http://downwhole.com website
    By testcodepro in forum Forum and DDL Discussion
    Replies: 1
    Last Post: 14th Jun 2011, 02:26 PM
  5. Please review my website http://freehealthylife.com
    By freehealthylife.com in forum Site Reviews
    Replies: 7
    Last Post: 15th Nov 2010, 06:08 AM

Tags for this Thread

BE SOCIAL