I am making own URL generator and there is a problem. I have absolute URL and I need to get relative URL from it.
Relative URL is path and query, like URI, so is this the same?
I am making own URL generator and there is a problem. I have absolute URL and I need to get relative URL from it.
Relative URL is path and query, like URI, so is this the same?
the relative url depends on the context.
absolute is: c:/home/user/test.zip
relative (when context is c:/home) to test.zip is: ./user/test.zip (or user/test.zip)