When I deploy my application locally or on the server, I can always access the app at either http://localhost:8080/myApp/
or http://example.com/myApp
. However, whenever I add www
to either of the URLs, on Chrome, I get the error Oops! Google Chrome could not find www.localhost:8080
.
I'd be very grateful if you could show me how I can make my application available on both www
and non-www
URLs.
Best regards,
James