What is the difference?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jupiter25
    New Member
    • Jan 2007
    • 3

    What is the difference?

    What is the difference between these two URLs:

    (1) www.mysite.com/info
    (2) www.mysite.com/info/

    I know one has the trailing slash. However, I see people giving option (1) as a web address in commercials on TV. What exactly do you call this and how can I set up a similar situation on website. In other words I would like to have my visitors type in www.mysite.com/info and have them actually be sent to a webpage on my site.

    Thank in advance for any help you can provide.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    Nothing.

    In general as long as there is an index.html in a folder then if that folder name is requested without a filename the webserver will automatically return index.html.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      There is a subtle difference but I don't recall the exact details. The ending slash is automatically inserted by most servers or assumed by browsers. The standards require it but it gets assumed and inserted like I said.

      I'll have to look that up sometime.

      Comment

      • jupiter25
        New Member
        • Jan 2007
        • 3

        #4
        Thank you for responding. It has been driving me crazy and I couldn't get an answer from the folks at Yahoo!

        Comment

        • jupiter25
          New Member
          • Jan 2007
          • 3

          #5
          Thanks for your reply. It was helpful.

          Comment

          • acoder
            Recognized Expert MVP
            • Nov 2006
            • 16032

            #6
            See here for an example/explanation of what happens if you miss the trailing slash.

            Comment

            • MMcCarthy
              Recognized Expert MVP
              • Aug 2006
              • 14387

              #7
              Originally posted by acoder
              See here for an example/explanation of what happens if you miss the trailing slash.
              That's a good explanation.

              Comment

              • DeWittds
                New Member
                • Oct 2006
                • 11

                #8
                I think if there is a file called info then the first method would try to retrieve it. The second method would look to the info directory

                Comment

                Working...