Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
WEB: Web Design Forum- TutorialsDreamweaver Forum- TutorialsFlash Forum- TutorialsWeb StreamingTraining

What's the diff between http:// and http://www ?

Cow Forums : Adobe Dreamweaver
What's the diff between http:// and http://www ?
by frank manno (Frank Manno) on May 20, 2008 at 8:51:28 am

Why is it that when I upload my index.html file to my host and browes it with a web browser, it loads up:-

http://myhost.com/index.html

Instead of

http://www.myhost.com/index.html ?

Other index.html files that my web designer created off the same root folder load up with 'www at the front though. I'm putting my ones off the same root folder.

This isn't making any sence.


-Frankie

Respond to this post   •   Return to posts index

Re: What's the diff between http:// and http://www ?
by Abraham Chaffin on May 20, 2008 at 3:01:39 pm

It's an alias -

Generally when DNS is setup both the domain name and the subdomain are both setup to point to the same server, though this in fact doesn't have to be. You could set them to point to two completely different sites / servers. The server then must be setup to interpret both the domain and the subdomain to point to a folder, or not as the case may be.

Another way to answer this questions is http stands for hyper text transfer protocol which is describing the language code that will be transfered when you send the request to the domain. http://www. is referring to the subdomain extension of the domain and stands for world wide web. This subdomain is a standard alias for the domain that is used for most sites but it doesn't have to be.

domain.com and www.domain.com are in fact two different pages and when Google crawls your site will see them as such unless you have one redirecting to the other though they may be identical.

Abraham

Respond to this post   •   Return to posts index

Re: What's the diff between http:// and http://www ?
by frank manno on May 21, 2008 at 1:11:06 am

I know what you mean by an alias but I wouldn't know how/where to configure it.

o how do I make a page go to www.domain.com/index.html then?

I have a folder on the server called /htdocs and it's the folder that I was told by my host that I am to use for the web site.

I had a designer build a web site for me and the folder structure is all off /htdocs and all his pages when viewed on the web have www. at the front.

I made a folder off /htdocs like they did and called it test and put an index.html file in there, but when viewed on the web it doesn' thave 'www.' in the url

I was under the impression that everythign comming off /htdocs will have 'www' in front of it.

SO then what do I need to do to have my /test/index.html file show up with 'www' in the url when viewed?

Sory for the newbiew questions. I'm just trying to understand how/where this alias is set up.

Is it in the web page itself? Is it the folder structure where the web page resides?

Respond to this post   •   Return to posts index


Re: What's the diff between http:// and http://www ?
by Ron Lindeboom on May 21, 2008 at 1:22:11 am


In your HTDOCS folder, you put the index.html file which is the base landing page of your site. It should show up as http://www.yoursitename.com

From there, you could add the other pages inside the HTDOCS folder and link to them directly from your index.html file or you could have folders that contain other file pages. Such as...

base page of

http://www.creativecow.net

jumps to a library of articles that could be

http://www.creativecow.net/library/index.html

with links to the articles on that page that might contain a link to

http://www.creativecow.net/library/cows_are_us/index.html

Where the cows_are_us is a folder inside the library folder that contains the index.com page and any associated graphics, movies, etc.

PLEASE KEEP IN MIND THESE ARE NOT ACTUAL COW PAGES, JUST AN EXAMPLE OF A HIERARCHY.

Best regards,

Ron Lindeboom
creativecow.net

Respond to this post   •   Return to posts index

Re: What's the diff between http:// and http://www ?
by frank manno on May 21, 2008 at 2:47:07 am

Ok I think I get it.

Yes if I put index.html in HTDOCS it shows up with 'www' which is right, thanks.

So is it at all possible, to navigate DIRECTLY to a subfolder off HTDOCS to view the subfolder's index.html file and -also- have the address with the 'www' in the URL?

For example.

Lets say you put an index.html file in htdocstest with no linking and no association to any other file or folder.

If I go to www.creativecow.net/test, will I then be at
'http://www.creativecow.net/test' or will I be at
http://creativecow.net/test'?

If I end up at 'http://creativecow.net/test' then is it possible to be at 'http://wwww.creativecow.net/test' instead without having anything in the root htdocs folder?

I'm starting to believe that htdocs is the root for 'www'. Is this right? And any subfolders off htdocs won't have a 'www'?

-Frankie


>In your HTDOCS folder, you put the index.html file which is the >base landing page of your site. It should show up as >http://www.yoursitename.com


Respond to this post   •   Return to posts index

Re: What's the diff between http:// and http://www ?
by Ron Lindeboom on May 21, 2008 at 3:33:46 am

Yes, HTDOCS is the root for the WWW address.

An index.htm OR index.html OR index.php will show up to your visitors as your base www.yourhttpaddress.com if it is in the htdocs folder.

That is your starting point.

Ron Lindeboom

Respond to this post   •   Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]