how is this possible? website with www loads a different page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Antonio
    Too lazy to set a custom title
    • Oct 2001
    • 14136

    #1

    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
    Too lazy to set a custom title
    • Oct 2001
    • 14136

    #2
    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

    Comment

    • who
      So Fucking Banned
      • Aug 2003
      • 19593

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

      Comment

      • KrisW
        For cybersex, do I need a hole in my monitor?
        • Dec 2005
        • 201

        #4
        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

        Comment

        • Antonio
          Too lazy to set a custom title
          • Oct 2001
          • 14136

          #5
          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???

          Comment

          • TheDoc
            Too lazy to set a custom title
            • Jul 2001
            • 13827

            #6
            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.
            ~TheDoc - ICQ7765825
            It's all disambiguation

            Comment

            • datatank
              Confirmed User
              • Aug 2004
              • 5471

              #7
              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 ;-)

              Comment

              • Antonio
                Too lazy to set a custom title
                • Oct 2001
                • 14136

                #8
                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

                Comment

                • who
                  So Fucking Banned
                  • Aug 2003
                  • 19593

                  #9
                  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.

                  Comment

                  • latinasojourn
                    Confirmed User
                    • Oct 2003
                    • 3191

                    #10
                    apache setup issue. have your host fix.

                    Comment

                    • Antonio
                      Too lazy to set a custom title
                      • Oct 2001
                      • 14136

                      #11
                      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:




                      (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)

                      Comment

                      • directfiesta
                        Too lazy to set a custom title
                        • Oct 2002
                        • 30242

                        #12
                        httpd.config

                        the virtual host is not setup properly, so one goes to the default, the other to the good page.
                        I know that Asspimple is stoopid ... As he says, it is a FACT !

                        But I can't figure out how he can breathe or type , at the same time ....

                        Comment

                        • KrisW
                          For cybersex, do I need a hole in my monitor?
                          • Dec 2005
                          • 201

                          #13
                          then its your host

                          Comment

                          • directfiesta
                            Too lazy to set a custom title
                            • Oct 2002
                            • 30242

                            #14
                            example:

                            <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.
                            I know that Asspimple is stoopid ... As he says, it is a FACT !

                            But I can't figure out how he can breathe or type , at the same time ....

                            Comment

                            • 3M TA3
                              Confirmed User
                              • Aug 2005
                              • 2972

                              #15
                              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.





                              restart apache and try again

                              Dedicated and colo hosting: ICQ 291313057

                              "A problem cannot be solved from the same consciousness that created it. We must learn to see the world anew." - Albert Einstein

                              Comment

                              • Nookster
                                Confirmed IT Professional
                                • Nov 2005
                                • 3744

                                #16
                                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.
                                The Best Affiliate Software, Ever.

                                Comment

                                • fris
                                  I have to go potty
                                  • Aug 2002
                                  • 55907

                                  #17
                                  admin error ;)
                                  Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


                                  My Newest Theme

                                  Comment

                                  • Antonio
                                    Too lazy to set a custom title
                                    • Oct 2001
                                    • 14136

                                    #18
                                    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

                                    Comment

                                    • teksonline
                                      So Fucking Banned
                                      • Jan 2005
                                      • 2904

                                      #19
                                      what's a domain?

                                      Comment

                                      • Manowar
                                        jellyfish  
                                        • Dec 2003
                                        • 71528

                                        #20
                                        Originally posted by teksonline
                                        what's a domain?
                                        what is the interweb?

                                        Comment

                                        Working...