I want to write a small script to know if two URLS lead to the same page. For example: http://google.com and http://google.com/# will lead to the same URL. Also sometimes http://URL1.com and http://URL2.com also lead to the same page although they are not the same URL.
Is there an easy way to do that?
If you need more information please tell me and i will edit the post
NOTE: this is NOT a homework question so please be as helpful as you can.
Thank you all!