Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5932133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:47:34+00:00 2026-05-22T14:47:34+00:00

In a question regarding a jQuery Ajax problem , the asker was trying to

  • 0

In a question regarding a jQuery Ajax problem, the asker was trying to use a . in the beginning of a relative URL. I advised him to remove it, but have no idea what a dot actually does there.

His relative URL looked like this:

./delete-misc/test-ajax-code.php

I tried looking in the RFCs, without success. I know what the dot does in command line (either Linux or Win), it represents the current directory.

I’d like to know: how does this work on the Internet in a URL? Does it have any best-practice uses? Detailed explanations are most welcome.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T14:47:34+00:00Added an answer on May 22, 2026 at 2:47 pm

    The path segment . is typically used at the begin of relative path references and are removed during the reference resolution, i.e. the process of resolving a relative URI reference to an absolute URI:

    The path segments "." and "..", also known as dot-segments, are
    defined for relative reference within the path name hierarchy. They
    are intended for use at the beginning of a relative-path reference
    (Section 4.2) to indicate relative position within the hierarchical
    tree of names. This is similar to their role within some operating
    systems’ file directory structures to indicate the current directory
    and parent directory, respectively. However, unlike in a file
    system, these dot-segments are only interpreted within the URI path
    hierarchy and are removed as part of the resolution process (Section
    5.2
    ).

    There is Remove Dot Segments algorithms that describes how these dot segments are to be interpreted in a certain base path context.

    In your case both ./delete-misc/test-ajax-code.php and delete-misc/test-ajax-code.php are equivalent. But there are cases where a relative path can be misinterpreted as an absolute URI, e.g. having a : in the first path segment like search:foo that is different to ./search:foo as the former is an absolute URI while the latter is a relative URI path.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to JQuery, but as a follow on from my previous question regarding
I have somewhat of a thought question regarding jQuery Ajax. My question is this:
I all. I posted yesterday a question regarding dates not sent with jquery-ajax and
Have a question regarding URL and jQuery. Can I specify URL to tell jQuery
I've got a question regarding jQuery, I want to remove the following from the
I have read another post/question regarding jquery variables and it was useful but I'm
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I still am confused regarding Ajax technology. And I still cannot answer this question
I have a question regarding jQuery. I have multiple images that are, in essence,
i have a question regarding Jquery <select id=thechoices> <option value=0>Select Box</option> <option value=box1>Box 1</option>

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.