What does a dot mean in a URL path?

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 … Read more

Absolute urls, relative urls, and…?

Here are the URL components: http://www.example.com/en/public/img/logo.gif \__/ \_____________/\_____________________/ #1 #2 #3 scheme/protocol host path A URL is called an absolute URL if it begins with the scheme and scheme specific part (here // after http:). Anything else is a relative URL. A URL path is called an absolute URL path if it begins with a … Read more

What are the safe characters for making URLs?

To quote section 2.3 of RFC 3986: Characters that are allowed in a URI, but do not have a reserved purpose, are called unreserved. These include uppercase and lowercase letters, decimal digits, hyphen, period, underscore, and tilde. ALPHA DIGIT “-” / “.” / “_” / “~” Note that RFC 3986 lists fewer reserved punctuation marks … Read more

Is there a way to change the browser’s address bar without refreshing the page?

With HTML5 you can modify the url without reloading: If you want to make a new post in the browser’s history (i.e. back button will work) window.history.pushState(‘Object’, ‘Title’, ‘/new-url’); If you just want to change the url without being able to go back window.history.replaceState(‘Object’, ‘Title’, ‘/another-new-url’); The object can be used for ajax navigation: window.history.pushState({ … Read more