People talk about URLs, URIs, and URNs as if they\'re different things, but they look the same to the naked eye.
W
Although the terms URI and URL are strictly defined, many use the terms for other things than they are defined for.
Let’s take Apache for example. If http://example.com/foo is requested from an Apache server, you’ll have the following environment variables set:
REDIRECT_URL
: /foo
REQUEST_URI
: /foo
With mod_rewrite enabled, you will also have these variables:
REDIRECT_SCRIPT_URL
: /foo
REDIRECT_SCRIPT_URI
: http://example.com/foo
SCRIPT_URL
: /foo
SCRIPT_URI
: http://example.com/foo
This might be the reason for some of the confusion.