I want to know if there is any way to get the real URL of a webpage. For example, I have a website named http://www.tutorialspoint.com/java/java_files_io.htm, the real/main URL is http://www.tutorialspoint.com of its main page.
Now I have another website http://www.sinhgad.edu/sinhgad-engineering-institutes/SEI-placement/index.html, its main page URL is http://www.sinhgad.edu/sinhgad-engineering-institutes/ in place of http://www.sinhgad.edu/ only.
I want to get this main page URL or real URL in Java.