Results 1 to 8 of 8
-
12th Apr 2011, 11:11 PM #1OPSuper Member
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" feelingSp32 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
-
12th Apr 2011, 11:17 PM #2Member
Check virtual hosts records, compare them..
-
12th Apr 2011, 11:19 PM #3OPSuper 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
-
12th Apr 2011, 11:26 PM #4Member
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.
-
12th Apr 2011, 11:31 PM #5OPSuper 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
-
12th Apr 2011, 11:40 PM #6Member
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..
-
12th Apr 2011, 11:43 PM #7OPSuper 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
-
12th Apr 2011, 11:49 PM #8Member
Checked the IP..
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
New website and new works :)
By yuval10203 in forum Graphics AreaReplies: 19Last Post: 19th Feb 2012, 01:55 AM -
Is there any tool to check redirects from a website?
By IceTea in forum Webmaster DiscussionReplies: 0Last Post: 8th Jan 2012, 04:58 PM -
Review my website http://fdbooks.net
By nt128 in forum Site ReviewsReplies: 10Last Post: 29th Dec 2011, 06:13 PM -
Sale http://downwhole.com website
By testcodepro in forum Forum and DDL DiscussionReplies: 1Last Post: 14th Jun 2011, 02:26 PM -
Please review my website http://freehealthylife.com
By freehealthylife.com in forum Site ReviewsReplies: 7Last Post: 15th Nov 2010, 06:08 AM
themaCreator - create posts from...
Version 3.47 released. Open older version (or...