I have a web app that I'm developing locally that has a long url like so:
localhost:8080/abcd/efg
due to reasons I can't help.
Is there a way to map this long URL to a shorter one like "xyz", that would automatically map to the former URL? Something like an alias?
EDIT: Ok I guess I was being vague - I don't mean within my application. I want my computer to map the url xyz
to localhost:8080/abcd/efg
, just like a DNS server would do, but on my machine locally.