GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   how is this possible? website with www loads a different page (https://gfy.com/showthread.php?t=553179)

Antonio 12-16-2005 02:35 PM

how is this possible? website with www loads a different page
 
than the same site (url) wihtout the www part:
(example)
http://www.mysite.com
loads one page but
http://mysite.com
loads a different one

wtf? I contacted my host but this is something I have never seen before, there's no htaccess there, there's only ONE html file and that's index.html and no other files whatsoever

I got the site couple of days ago and pointed the DNS to my host, now when I type:
http://www.mysite.com
it loads the page that was there before I purchased the site
and when I type:
http://mysite.com
it loads the right page (the one and only index file that I uploaded) ???

p.s. this is not a browser cahce, I cleared the cache and even tried from one of my other PCs just to make sure

Antonio 12-16-2005 02:36 PM

don't click the links - I have no idea what's there (in case there are some nasty popups or shit) - they are just an example

who 12-16-2005 02:37 PM

'www' is just a subdomain (generally the only and default subdomain used)

KrisW 12-16-2005 02:40 PM

because the host configured the dns wrong
if you try and ping it, I bet it resolves it to different IP's - if it does, then I'm right

Antonio 12-16-2005 02:40 PM

Quote:

Originally Posted by who
'www' is just a subdomain (generally the only and default subdomain used)

ok, but that still doesn't explain anything

I own thedomain, the DNS servers are my host servers, there's no htacces there so
http://www.mysite.com and http://mysite.com should load the same page, and how come http://www.mysite.com loads the page that used to be there 3 or 4 days ago???

TheDoc 12-16-2005 02:45 PM

Quote:

Originally Posted by KrisW
because the host configured the dns wrong
if you try and ping it, I bet it resolves it to different IP's - if it does, then I'm right

Aye, that's it.. I have had this happen to me on a few domains before.

datatank 12-16-2005 02:49 PM

Quote:

Originally Posted by KrisW
because the host configured the dns wrong
if you try and ping it, I bet it resolves it to different IP's - if it does, then I'm right


They could both be on the same ip just different folders on the server. I would suggest having your host fix it. Its most likely in your named file or your apache. Sorry I do not remember the exact file names I am not a tech ;-)

Antonio 12-16-2005 02:49 PM

Quote:

Originally Posted by KrisW
because the host configured the dns wrong
if you try and ping it, I bet it resolves it to different IP's - if it does, then I'm right

just pinged the two urls (with and without www)
it resolves to the same ip address

arggggggggggg

who 12-16-2005 02:51 PM

Quote:

Originally Posted by Antonio
just pinged the two urls (with and without www)
it resolves to the same ip address

arggggggggggg

check the folders your web files are located in. You may have a 'www' folder and a 'public_html' forlder (for example) which are not actually the same thing, although in most cases a www folder is not allowed.

latinasojourn 12-16-2005 02:54 PM

apache setup issue. have your host fix.

Antonio 12-16-2005 02:56 PM

Quote:

Originally Posted by who
check the folders your web files are located in. You may have a 'www' folder and a 'public_html' forlder (for example) which are not actually the same thing, although in most cases a www folder is not allowed.

that's not the case either:

http://www.tgpwiz.com/hh/folders.jpg


(the test file got created couple of minutes ago by my host - just to test something I guess, I'm still waiting for them to fix it though)

directfiesta 12-16-2005 03:16 PM

httpd.config

the virtual host is not setup properly, so one goes to the default, the other to the good page.

KrisW 12-16-2005 03:17 PM

then its your host

directfiesta 12-16-2005 03:24 PM

example:

Quote:

<VirtualHost 65.98.84.xxx>
ServerAlias www.griffincater.com griffincater.com
ServerAdmin [email protected]
DocumentRoot /home/griffin/public_html
BytesLog domlogs/griffincater.com-bytes_log
ServerName www.griffincater.com
ScriptAlias /cgi-bin/ /home/griffin/public_html/cgi-bin/
User griffin
Group griffin
CustomLog domlogs/griffincater.com combined
</VirtualHost>
Note the second line:

you have " www.griffincater.com "

as well as " griffincater.com "


In SSH, this file can be adjusted. This happens once in a while with a WHM/Cpanel account creation.

3M TA3 12-16-2005 03:28 PM

Quote:

Originally Posted by directfiesta
httpd.config

the virtual host is not setup properly, so one goes to the default, the other to the good page.


:thumbsup :thumbsup :thumbsup



restart apache and try again

Nookster 12-16-2005 03:53 PM

could be easily done with php. Grab whatever text is in the url, make redirects based on the string. HTML files can be parced by the php processor by the way. :)

fris 12-16-2005 04:01 PM

admin error ;)

Antonio 12-16-2005 04:17 PM

ok, now it's getting weird, the guy from my host tells me that both urls load the same page, he tried in Firefiox and IE

I tried in Opera, K-Meleon, and IE and both urls load two different pages
I tried on two other PCs and get the same shit (although all my PCs share the same connection)

anyone willing to test the two urls for me, please post your ICQ
ONLY IF YOU HAVE ANTIVIRUS etc, the one that I get (which is not mine) has 3 or more pop-ups chained and could have some other shit

teksonline 12-16-2005 05:01 PM

what's a domain?

Manowar 12-16-2005 05:08 PM

Quote:

Originally Posted by teksonline
what's a domain?

what is the interweb? :helpme


All times are GMT -7. The time now is 07:55 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123